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

Method InstrPTR

sdk/angelscript/source/as_bytecode.cpp:2793–2807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2791}
2792
2793int asCByteCode::InstrPTR(asEBCInstr bc, void *param)
2794{
2795 asASSERT(asBCInfo[bc].stackInc != 0xFFFF);
2796
2797 if( AddInstruction() < 0 )
2798 return 0;
2799
2800 last->op = bc;
2801 asASSERT(asBCInfo[bc].type == asBCTYPE_PTR_ARG);
2802 *ARG_PTR(last->arg) = (asPWORD)param;
2803 last->size = asBCTypeSize[asBCInfo[bc].type];
2804 last->stackInc = asBCInfo[bc].stackInc;
2805
2806 return last->stackInc;
2807}
2808
2809int asCByteCode::InstrQWORD(asEBCInstr bc, asQWORD param)
2810{

Callers 15

CompileFactoryMethod · 0.80
CompileFunctionMethod · 0.80
CallCopyConstructorMethod · 0.80
DetermineSingleFuncMethod · 0.80
PrepareArgumentMethod · 0.80
CompileInitializationMethod · 0.80
CompileInitListMethod · 0.80
CompileForStatementMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected