mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-08 05:53:22 +00:00
bugfix: #line generation for windows
This commit is contained in:
@@ -18,8 +18,8 @@ proc genLineDir(p: BProc, t: PNode) =
|
||||
if line < 0:
|
||||
line = 0 # negative numbers are not allowed in #line
|
||||
if optLineDir in p.Options and line > 0:
|
||||
appff(p.s[cpsStmts], "#line $2 \"$1\"$n", "; line $2 \"$1\"$n",
|
||||
[toRope(toFilename(t.info)), toRope(line)])
|
||||
appff(p.s[cpsStmts], "#line $2 $1$n", "; line $2 \"$1\"$n",
|
||||
[makeCString(toFilename(t.info)), toRope(line)])
|
||||
if ({optStackTrace, optEndb} * p.Options == {optStackTrace, optEndb}) and
|
||||
(p.prc == nil or sfPure notin p.prc.flags):
|
||||
appcg(p, cpsStmts, "#endb($1);$n", [toRope(line)])
|
||||
|
||||
@@ -2511,7 +2511,7 @@ special ``:`` syntax:
|
||||
In the example the two ``writeln`` statements are bound to the ``actions``
|
||||
parameter.
|
||||
|
||||
**Note:** Symbol binding rules for templates might change!
|
||||
**Note:** The symbol binding rules for templates might change!
|
||||
|
||||
Symbol binding within templates happens after template instantation:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user