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

Method getScriptableVariables

src/hx/cppia/CppiaFunction.cpp:204–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202
203#ifdef HXCPP_STACK_SCRIPTABLE
204void ScriptCallable::getScriptableVariables(unsigned char *inStack, Array<Dynamic> outNames)
205{
206 unsigned char *frame = inStack - stackSize;
207
208 hx::Object *thizz = *(hx::Object **)frame;
209 if (thizz)
210 outNames->push(HX_CSTRING("this"));
211
212 for(CppiaStackVarMap::iterator i=varMap.begin();i!=varMap.end();++i)
213 {
214 CppiaStackVar *var = i->second;
215 outNames->push(var->module->strings[ var->nameId] );
216 }
217}
218
219
220bool ScriptCallable::getScriptableValue(unsigned char *inStack, String inName, ::Dynamic &outValue)

Callers 1

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected