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

Method CallPtr

sdk/angelscript/source/as_bytecode.cpp:1687–1701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1685}
1686
1687void asCByteCode::CallPtr(asEBCInstr instr, int funcPtrVar, int pop)
1688{
1689 if( AddInstruction() < 0 )
1690 return;
1691
1692 asASSERT(asBCInfo[instr].type == asBCTYPE_rW_ARG);
1693
1694 last->op = instr;
1695 last->size = asBCTypeSize[asBCInfo[instr].type];
1696 last->stackInc = -pop;
1697 last->wArg[0] = (short)funcPtrVar;
1698
1699 // Add a JitEntry instruction after function calls so that JIT's can resume execution
1700 InstrPTR(asBC_JitEntry, 0);
1701}
1702
1703void asCByteCode::Alloc(asEBCInstr instr, void *objID, int funcID, int pop)
1704{

Callers 1

PerformFunctionCallMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected