MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / setScriptableValue

Method setScriptableValue

src/hx/cppia/CppiaFunction.cpp:244–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242
243
244bool ScriptCallable::setScriptableValue(unsigned char *inStack, String inName, ::Dynamic inValue)
245{
246 unsigned char *frame = inStack - stackSize;
247 for(CppiaStackVarMap::iterator i=varMap.begin();i!=varMap.end();++i)
248 {
249 CppiaStackVar *var = i->second;
250 if ( var->module->strings[ var->nameId]==inName)
251 {
252 var->setInFrame(frame,inValue);
253 return true;
254 }
255 }
256
257 return false;
258}
259
260
261#endif

Callers 1

Calls 1

setInFrameMethod · 0.80

Tested by

no test coverage detected