mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-18 02:00:22 +02:00
Made sourceLine argument optional to avoid string allocation
This commit is contained in:
3 files changed
+8
-7
No files matched your search
@@ -847,12 +847,11 @@ void ScriptCompiler::EmitOpcode(int opcode, unsigned int sourcePos)
|
||||
}
|
||||
|
||||
if (script->m_ProgToSource) {
|
||||
str sourceLine;
|
||||
sourceinfo_t info;
|
||||
|
||||
info.sourcePos = sourcePos;
|
||||
|
||||
script->GetSourceAt(sourcePos, sourceLine, info.column, info.line);
|
||||
script->GetSourceAt(sourcePos, NULL, info.column, info.line);
|
||||
script->m_ProgToSource->addKeyValue(code_pos) = info;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user