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

Method InstrW_DW

sdk/angelscript/source/as_bytecode.cpp:2583–2600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2581}
2582
2583int asCByteCode::InstrW_DW(asEBCInstr bc, asWORD a, asDWORD b)
2584{
2585 asASSERT(asBCInfo[bc].type == asBCTYPE_wW_DW_ARG ||
2586 asBCInfo[bc].type == asBCTYPE_rW_DW_ARG ||
2587 asBCInfo[bc].type == asBCTYPE_W_DW_ARG);
2588 asASSERT(asBCInfo[bc].stackInc == 0);
2589
2590 if( AddInstruction() < 0 )
2591 return 0;
2592
2593 last->op = bc;
2594 last->wArg[0] = a;
2595 *((int*) ARG_DW(last->arg)) = b;
2596 last->size = asBCTypeSize[asBCInfo[bc].type];
2597 last->stackInc = asBCInfo[bc].stackInc;
2598
2599 return last->stackInc;
2600}
2601
2602int asCByteCode::InstrSHORT_DW_DW(asEBCInstr bc, short a, asDWORD b, asDWORD c)
2603{

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected