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

Method getInFrame

src/hx/cppia/CppiaVars.cpp:428–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426
427
428Dynamic CppiaStackVar::getInFrame(const unsigned char *inFrame)
429{
430 const unsigned char *ptr = inFrame + stackPos;
431 switch(storeType)
432 {
433 case fsByte: return (unsigned char) *(int *)ptr;
434 case fsBool: return (bool) *(int *)ptr;
435 case fsInt: return *(int *)ptr;
436 case fsFloat: return *(Float *)ptr;
437 case fsString: return *(String *)ptr;
438 case fsObject: return *(hx::Object **)ptr;
439 case fsUnknown:
440 break;
441 }
442 return null();
443}
444
445
446void CppiaStackVar::markClosure(char *inBase, hx::MarkContext *__inCtx)

Callers 1

getScriptableValueMethod · 0.80

Calls 1

nullClass · 0.50

Tested by

no test coverage detected