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

Method InstrINT

sdk/angelscript/source/as_bytecode.cpp:2761–2775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2759}
2760
2761int asCByteCode::InstrINT(asEBCInstr bc, int param)
2762{
2763 asASSERT(asBCInfo[bc].type == asBCTYPE_DW_ARG);
2764 asASSERT(asBCInfo[bc].stackInc != 0xFFFF);
2765
2766 if( AddInstruction() < 0 )
2767 return 0;
2768
2769 last->op = bc;
2770 *((int*) ARG_DW(last->arg)) = param;
2771 last->size = asBCTypeSize[asBCInfo[bc].type];
2772 last->stackInc = asBCInfo[bc].stackInc;
2773
2774 return last->stackInc;
2775}
2776
2777int asCByteCode::InstrDWORD(asEBCInstr bc, asDWORD param)
2778{

Callers 10

CompileTryCatchMethod · 0.80
CompileIfStatementMethod · 0.80
CompileWhileStatementMethod · 0.80
CompileBreakStatementMethod · 0.80
CompileRefCastMethod · 0.80
CompileConditionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected