MCPcopy Create free account
hub / github.com/ZDoom/Raze / EndStatement

Method EndStatement

source/common/scripting/backend/vmbuilder.cpp:104–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void VMFunctionBuilder::EndStatement()
105{
106 // pop empty statement records.
107 while (LineNumbers.Size() > 0 && LineNumbers.Last().InstructionIndex == Code.Size()) LineNumbers.Pop();
108 StatementStack.Pop();
109 // Re-enter the previous statement.
110 if (StatementStack.Size() > 0)
111 {
112 FStatementInfo si = { (uint16_t)Code.Size(), (uint16_t)StatementStack.Last()->ScriptPosition.ScriptLine };
113 LineNumbers.Push(si);
114 }
115}
116
117void VMFunctionBuilder::MakeFunction(VMScriptFunction *func)
118{

Callers 2

BuildMethod · 0.80
EmitStatementMethod · 0.80

Calls 3

PopMethod · 0.80
SizeMethod · 0.45
PushMethod · 0.45

Tested by

no test coverage detected