'noStackFrame' implies 'naked' in the generated C code

This commit is contained in:
Araq 2013-10-06 00:10:45 +02:00
commit ac474a2812
7 changed files with 25 additions and 14 deletions

View file

@ -4671,8 +4671,10 @@ NoStackFrame pragma
-------------------
A proc can be marked with the `noStackFrame`:idx: pragma to tell the compiler
it should not generate a stack frame for the proc. There are also no exit
statements like ``return result;`` generated. This is useful for procs that
only consist of an assembler statement.
statements like ``return result;`` generated and the generated C function is
declared as ``__declspec(naked)`` or ``__attribute__((naked))`` (depending on
the used C compiler). This is useful for procs that only consist of an
assembler statement.
error pragma