MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / compileStmt

Method compileStmt

Engine/source/console/astNodes.cpp:168–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166//------------------------------------------------------------
167
168U32 BreakStmtNode::compileStmt(CodeStream &codeStream, U32 ip)
169{
170 if(codeStream.inLoop())
171 {
172 addBreakLine(codeStream);
173 codeStream.emit(OP_JMP);
174 codeStream.emitFix(CodeStream::FIXTYPE_BREAK);
175 }
176 else
177 {
178 Con::warnf(ConsoleLogEntry::General, "%s (%d): break outside of loop... ignoring.", dbgFileName, dbgLineNumber);
179 }
180 return codeStream.tell();
181}
182
183//------------------------------------------------------------
184

Callers 1

compileBlockFunction · 0.80

Calls 15

warnfFunction · 0.85
compileBlockFunction · 0.85
setCurrentStringTableFunction · 0.85
setCurrentFloatTableFunction · 0.85
precompileIdentFunction · 0.85
inLoopMethod · 0.80
emitMethod · 0.80
emitFixMethod · 0.80
getPreferredTypeMethod · 0.80
patchMethod · 0.80
pushFixScopeMethod · 0.80
fixLoopMethod · 0.80

Tested by

no test coverage detected