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

Method runInt

src/hx/cppia/Cppia.cpp:7330–7343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7328 return Dynamic(runString(ctx)).mPtr;
7329 }
7330 int runInt(CppiaCtx *ctx) HXCPP_OVERRIDE
7331 {
7332 if (AS_DYNAMIC)
7333 {
7334 Dynamic lval = left->runObject(ctx);
7335 BCR_CHECK;
7336 return (lval + Dynamic(right->runObject(ctx)))->__ToInt();
7337 }
7338
7339 left->runVoid(ctx);
7340 BCR_CHECK;
7341 right->runVoid(ctx);
7342 return 0;
7343 }
7344 Float runFloat(CppiaCtx *ctx) HXCPP_OVERRIDE
7345 {
7346 if (AS_DYNAMIC)

Callers

nothing calls this directly

Calls 4

DynamicClass · 0.50
runObjectMethod · 0.45
__ToIntMethod · 0.45
runVoidMethod · 0.45

Tested by

no test coverage detected