MCPcopy Create free account
hub / github.com/anjo76/angelscript / Ret

Method Ret

sdk/angelscript/source/as_bytecode.cpp:1720–1731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1718}
1719
1720void asCByteCode::Ret(int pop)
1721{
1722 if( AddInstruction() < 0 )
1723 return;
1724
1725 asASSERT(asBCInfo[asBC_RET].type == asBCTYPE_W_ARG);
1726
1727 last->op = asBC_RET;
1728 last->size = asBCTypeSize[asBCInfo[asBC_RET].type];
1729 last->stackInc = 0; // The instruction pops the argument, but it doesn't affect current function
1730 last->wArg[0] = (short)pop;
1731}
1732
1733void asCByteCode::JmpP(int var, asDWORD max)
1734{

Callers 5

CompileFactoryMethod · 0.80
CompileFunctionMethod · 0.80
CompileGlobalVariableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected