diff options
author | Alberto Torres <kungfoobar@gmail.com> | 2023-08-18 21:13:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-18 21:13:27 +0200 |
commit | 20cbdc2741e9e34a99288ded9664378afc80acb6 (patch) | |
tree | e53149b0ae7dbbde78568e25f4be73d7f3c0893d /compiler/cgen.nim | |
parent | eb83d20d0d1ab1d0cbd9574a3dc1bcdae949e865 (diff) | |
download | Nim-20cbdc2741e9e34a99288ded9664378afc80acb6.tar.gz |
Fix #22366 by making nimlf_/nimln_ part of the same line (#22503)
Fix #22366 by making nimlf_/nimln_ part of the same line so the debugger doesn't advance to the next line before executing it
Diffstat (limited to 'compiler/cgen.nim')
-rw-r--r-- | compiler/cgen.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 811f89983..6d301dc47 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -312,10 +312,10 @@ proc genLineDir(p: BProc, t: PNode) = (p.prc == nil or sfPure notin p.prc.flags) and t.info.fileIndex != InvalidFileIdx: if freshLine: if lastFileIndex == t.info.fileIndex: - linefmt(p, cpsStmts, "nimln_($1);\n", + linefmt(p, cpsStmts, "nimln_($1);", [line]) else: - linefmt(p, cpsStmts, "nimlf_($1, $2);\n", + linefmt(p, cpsStmts, "nimlf_($1, $2);", [line, quotedFilename(p.config, t.info)]) proc accessThreadLocalVar(p: BProc, s: PSym) |