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

Method RemoveLastInstr

sdk/angelscript/source/as_bytecode.cpp:2887–2907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2885}
2886
2887int asCByteCode::RemoveLastInstr()
2888{
2889 if( last == 0 ) return -1;
2890
2891 if( first == last )
2892 {
2893 engine->memoryMgr.FreeByteInstruction(last);
2894 first = 0;
2895 last = 0;
2896 }
2897 else
2898 {
2899 asCByteInstruction *bc = last;
2900 last = bc->prev;
2901
2902 bc->Remove();
2903 engine->memoryMgr.FreeByteInstruction(bc);
2904 }
2905
2906 return 0;
2907}
2908
2909asDWORD asCByteCode::GetLastInstrValueDW()
2910{

Callers 1

CompileConstructCallMethod · 0.80

Calls 2

FreeByteInstructionMethod · 0.80
RemoveMethod · 0.45

Tested by

no test coverage detected