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

Function runContextConvertObject

src/hx/cppia/CppiaCtx.cpp:117–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117hx::Object *runContextConvertObject(StackContext *ctx, ExprType inType, void *inFunc)
118{
119 switch(inType)
120 {
121 case etInt: return Dynamic(ctx->runInt(inFunc)).mPtr;
122 case etFloat: return Dynamic(ctx->runFloat(inFunc)).mPtr;
123 case etObject: return ctx->runObject(inFunc).mPtr;
124 case etString: return Dynamic(ctx->runString(inFunc)).mPtr;
125 default:
126 ctx->runVoid(inFunc);
127 }
128 return 0;
129}
130
131
132

Callers 3

runFunExprDynamicFunction · 0.85
runObjectMethod · 0.85
runObjectMethod · 0.85

Calls 6

DynamicClass · 0.50
runIntMethod · 0.45
runFloatMethod · 0.45
runObjectMethod · 0.45
runStringMethod · 0.45
runVoidMethod · 0.45

Tested by

no test coverage detected