diff options
author | Araq <rumpf_a@web.de> | 2011-08-11 01:28:37 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-08-11 01:28:37 +0200 |
commit | a1cdd6e7ffbefb7f1e64847426b3e424656c6291 (patch) | |
tree | e6babc738657e85199286af0acb317b88cff34fb /compiler/ccgstmts.nim | |
parent | d5dd4669df9827920e7e9f1864171c09ac15fbb2 (diff) | |
download | Nim-a1cdd6e7ffbefb7f1e64847426b3e424656c6291.tar.gz |
bugfix: #line generation for windows
Diffstat (limited to 'compiler/ccgstmts.nim')
-rwxr-xr-x | compiler/ccgstmts.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ccgstmts.nim b/compiler/ccgstmts.nim index 9713dff0e..df843bc38 100755 --- a/compiler/ccgstmts.nim +++ b/compiler/ccgstmts.nim @@ -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)]) |