summary refs log tree commit diff stats
path: root/doc/manual.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/manual.txt
parent8d19b099595561d42bf1206c5488cfeaa08ebadb (diff)
downloadNim-0a0b74bc24f08c0c14712b2e445dfda11787f202.tar.gz
asmNoStackFrame -> stackTrace:off
Diffstat (limited to 'doc/manual.txt')
-rw-r--r--doc/manual.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/manual.txt b/doc/manual.txt
index 1af2a3117..b23ef4c0b 100644
--- a/doc/manual.txt
+++ b/doc/manual.txt
@@ -2335,7 +2335,8 @@ Nimrod identifiers shall be enclosed in a special character which can be
 specified in the statement's pragmas. The default special character is ``'`'``:
 
 .. code-block:: nimrod
-  proc addInt(a, b: int): int {.asmNoStackFrame.} =
+  {.push stackTrace:off.}
+  proc addInt(a, b: int): int =
     # a in eax, and b in edx
     asm """
         mov eax, `a`
@@ -2344,6 +2345,7 @@ specified in the statement's pragmas. The default special character is ``'`'``:
         call `raiseOverflow`
       theEnd:
     """
+  {.pop.}
 
 If the GNU assembler is used, quotes and newlines are inserted automatically: