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

Method setResult

src/hx/cppia/Cppia.cpp:5607–5623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5605
5606 template<typename T>
5607 void setResult(CppiaCtx *ctx,T &outValue)
5608 {
5609 #ifdef DEBUG_RETURN_TYPE
5610 gLastRet = accessType;
5611 #endif
5612 if (sizeof(outValue)>0)
5613 {
5614 if (accessType == etInt)
5615 SetVal(outValue,ctx->getInt());
5616 else if (accessType == etFloat)
5617 SetVal(outValue,ctx->getFloat());
5618 else if (accessType == etString)
5619 SetVal(outValue,ctx->getString());
5620 else if (accessType == etObject)
5621 SetVal(outValue,ctx->getObject());
5622 }
5623 }
5624
5625
5626 template<typename T>

Callers

nothing calls this directly

Calls 5

SetValFunction · 0.85
getFloatMethod · 0.80
getIntMethod · 0.45
getStringMethod · 0.45
getObjectMethod · 0.45

Tested by

no test coverage detected