summary refs log tree commit diff stats
path: root/doc/nimrodc.txt
diff options
context:
space:
mode:
authorEXetoC <exetoc@gmail.com>2014-05-04 22:48:53 +0200
committerEXetoC <exetoc@gmail.com>2014-05-04 22:48:53 +0200
commit0a0b74bc24f08c0c14712b2e445dfda11787f202 (patch)
tree53978ae42648d79f47768cc9a9b1914103d4bedb /doc/nimrodc.txt
parent8d19b099595561d42bf1206c5488cfeaa08ebadb (diff)
downloadNim-0a0b74bc24f08c0c14712b2e445dfda11787f202.tar.gz
asmNoStackFrame -> stackTrace:off
Diffstat (limited to 'doc/nimrodc.txt')
-rw-r--r--doc/nimrodc.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/nimrodc.txt b/doc/nimrodc.txt
index bde950982..b7b4c46e9 100644
--- a/doc/nimrodc.txt
+++ b/doc/nimrodc.txt
@@ -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()