asmNoStackFrame -> stackTrace:off

This commit is contained in:
EXetoC 2014-05-04 22:48:53 +02:00
commit 0a0b74bc24
3 changed files with 7 additions and 3 deletions

View file

@ -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: