asmNoStackFrame -> stackTrace:off
This commit is contained in:
parent
8d19b09959
commit
0a0b74bc24
3 changed files with 7 additions and 3 deletions
|
|
@ -360,10 +360,12 @@ Example:
|
|||
static int cvariable = 420;
|
||||
""".}
|
||||
|
||||
{.push stackTrace:off.}
|
||||
proc embedsC() {.asmNoStackFrame.} =
|
||||
var nimrodVar = 89
|
||||
# use backticks to access Nimrod symbols within an emit section:
|
||||
{.emit: """fprintf(stdout, "%d\n", cvariable + (int)`nimrodVar`);""".}
|
||||
{.pop.}
|
||||
|
||||
embedsC()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue