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

Method compileStmt

Engine/source/console/astNodes.cpp:112–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110//------------------------------------------------------------
111
112U32 BreakStmtNode::compileStmt(CodeStream& codeStream, U32 ip)
113{
114 if (codeStream.inLoop())
115 {
116 addBreakLine(codeStream);
117 codeStream.emit(OP_JMP);
118 codeStream.emitFix(CodeStream::FIXTYPE_BREAK);
119 }
120 else
121 {
122 Con::warnf(ConsoleLogEntry::General, "%s (%d): break outside of loop... ignoring.", dbgFileName, dbgLineNumber);
123 }
124 return codeStream.tell();
125}
126
127//------------------------------------------------------------
128

Callers 1

compileBlockFunction · 0.80

Calls 15

compileBlockFunction · 0.85
getFuncVarsFunction · 0.85
setCurrentStringTableFunction · 0.85
setCurrentFloatTableFunction · 0.85
precompileIdentFunction · 0.85
inLoopMethod · 0.80
emitFixMethod · 0.80
getPreferredTypeMethod · 0.80
patchMethod · 0.80
pushFixScopeMethod · 0.80
fixLoopMethod · 0.80
popFixScopeMethod · 0.80

Tested by

no test coverage detected