This commit is contained in:
EXetoC 2014-05-04 22:49:58 +02:00
commit f8b5133750

View file

@ -361,7 +361,7 @@ Example:
""".} """.}
{.push stackTrace:off.} {.push stackTrace:off.}
proc embedsC() {.asmNoStackFrame.} = proc embedsC() =
var nimrodVar = 89 var nimrodVar = 89
# use backticks to access Nimrod symbols within an emit section: # use backticks to access Nimrod symbols within an emit section:
{.emit: """fprintf(stdout, "%d\n", cvariable + (int)`nimrodVar`);""".} {.emit: """fprintf(stdout, "%d\n", cvariable + (int)`nimrodVar`);""".}