Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ User's Guide - the following form of the auxiliary pragma can be used to describe a http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
The following form of the auxiliary pragma can be used to describe a
function that does not return to the caller.

+--------------------------------------------------------------------------+
|      #pragma aux sym aborts [;]                                          |
|                                                                          |
+--------------------------------------------------------------------------+

where
    description

sym
    is a function name.

Consider the following example.


     #pragma aux exitrtn aborts;
     extern void exitrtn(void);

     void rtn()
       {
         exitrtn();
       }

exitrtn is defined to be a function that does not return.  For example, it
may call exit to return to the system.  In this case, Watcom C/C++ generates
a "jmp" instruction instead of a "call" instruction to invoke exitrtn.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson