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

Method InstrWORD

sdk/angelscript/source/as_bytecode.cpp:2825–2841  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2823}
2824
2825int asCByteCode::InstrWORD(asEBCInstr bc, asWORD param)
2826{
2827 asASSERT(asBCInfo[bc].type == asBCTYPE_W_ARG ||
2828 asBCInfo[bc].type == asBCTYPE_rW_ARG ||
2829 asBCInfo[bc].type == asBCTYPE_wW_ARG);
2830 asASSERT(asBCInfo[bc].stackInc != 0xFFFF);
2831
2832 if( AddInstruction() < 0 )
2833 return 0;
2834
2835 last->op = bc;
2836 last->wArg[0] = param;
2837 last->size = asBCTypeSize[asBCInfo[bc].type];
2838 last->stackInc = asBCInfo[bc].stackInc;
2839
2840 return last->stackInc;
2841}
2842
2843int asCByteCode::InstrFLOAT(asEBCInstr bc, float param)
2844{

Callers 11

PrepareArgumentMethod · 0.80
MoveArgsToStackMethod · 0.80
DoAssignmentMethod · 0.80
CompileConstructCallMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected