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

Method InstrSHORT

sdk/angelscript/source/as_bytecode.cpp:2743–2759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2741}
2742
2743int asCByteCode::InstrSHORT(asEBCInstr bc, short param)
2744{
2745 asASSERT(asBCInfo[bc].type == asBCTYPE_rW_ARG ||
2746 asBCInfo[bc].type == asBCTYPE_wW_ARG ||
2747 asBCInfo[bc].type == asBCTYPE_W_ARG);
2748 asASSERT(asBCInfo[bc].stackInc != 0xFFFF);
2749
2750 if( AddInstruction() < 0 )
2751 return 0;
2752
2753 last->op = bc;
2754 last->wArg[0] = param;
2755 last->size = asBCTypeSize[asBCInfo[bc].type];
2756 last->stackInc = asBCInfo[bc].stackInc;
2757
2758 return last->stackInc;
2759}
2760
2761int asCByteCode::InstrINT(asEBCInstr bc, int param)
2762{

Callers 15

CompileFactoryMethod · 0.80
CompileFunctionMethod · 0.80
CallCopyConstructorMethod · 0.80
CallDestructorMethod · 0.80
CompileInitAsCopyMethod · 0.80
PrepareArgumentMethod · 0.80
CompileInitializationMethod · 0.80
CompileInitListMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected