MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / InstrWORD

Method InstrWORD

src/server/angelscript/angelscript/source/as_bytecode.cpp:2877–2893  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2875}
2876
2877int asCByteCode::InstrWORD(asEBCInstr bc, asWORD param)
2878{
2879 asASSERT(asBCInfo[bc].type == asBCTYPE_W_ARG ||
2880 asBCInfo[bc].type == asBCTYPE_rW_ARG ||
2881 asBCInfo[bc].type == asBCTYPE_wW_ARG);
2882 asASSERT(asBCInfo[bc].stackInc != 0xFFFF);
2883
2884 if( AddInstruction() < 0 )
2885 return 0;
2886
2887 last->op = bc;
2888 last->wArg[0] = param;
2889 last->size = asBCTypeSize[asBCInfo[bc].type];
2890 last->stackInc = asBCInfo[bc].stackInc;
2891
2892 return last->stackInc;
2893}
2894
2895int asCByteCode::InstrFLOAT(asEBCInstr bc, float param)
2896{

Callers 10

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

Calls

no outgoing calls

Tested by

no test coverage detected