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

Method PCToLine

source/common/scripting/vm/vmframe.cpp:263–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263int VMScriptFunction::PCToLine(const VMOP *pc)
264{
265 int PCIndex = int(pc - Code);
266 if (LineInfoCount == 1) return LineInfo[0].LineNumber;
267 for (unsigned i = 1; i < LineInfoCount; i++)
268 {
269 if (LineInfo[i].InstructionIndex > PCIndex)
270 {
271 return LineInfo[i - 1].LineNumber;
272 }
273 }
274 return -1;
275}
276
277static bool CanJit(VMScriptFunction *func)
278{

Callers 7

EmitBOUNDMethod · 0.80
EmitBOUND_KMethod · 0.80
EmitBOUND_RMethod · 0.80
CodegenMethod · 0.80
ThrowAbortExceptionFunction · 0.80
catchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected