more occurences of 'pure' proc pragma fixed
This commit is contained in:
parent
d560e84fcc
commit
dd190a5c01
4 changed files with 30 additions and 29 deletions
|
|
@ -184,7 +184,7 @@ Example:
|
|||
static int cvariable = 420;
|
||||
""".}
|
||||
|
||||
proc embedsC() {.pure.} =
|
||||
proc embedsC() {.noStackFrame.} =
|
||||
var nimrodVar = 89
|
||||
# use backticks to access Nimrod symbols within an emit section:
|
||||
{.emit: """fprintf(stdout, "%d\n", cvariable + (int)`nimrodVar`);""".}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue