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

Method JmpP

sdk/angelscript/source/as_bytecode.cpp:1733–1747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1731}
1732
1733void asCByteCode::JmpP(int var, asDWORD max)
1734{
1735 if( AddInstruction() < 0 )
1736 return;
1737
1738 asASSERT(asBCInfo[asBC_JMPP].type == asBCTYPE_rW_ARG);
1739
1740 last->op = asBC_JMPP;
1741 last->size = asBCTypeSize[asBCInfo[asBC_JMPP].type];
1742 last->stackInc = asBCInfo[asBC_JMPP].stackInc;
1743 last->wArg[0] = (short)var;
1744
1745 // Store the largest jump that is made for PostProcess()
1746 *ARG_DW(last->arg) = max;
1747}
1748
1749void asCByteCode::Label(short label)
1750{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected