Merge pull request #1178 from EXetoC/nostackframe

noStackFrame -> asmNoStackFrame
This commit is contained in:
Andreas Rumpf 2014-05-29 02:15:01 +02:00
commit 208a594ff1
3 changed files with 8 additions and 4 deletions

View file

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