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 - when compiling a microsoft windows application, you must use the "zw" option http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
When compiling a Microsoft Windows application, you must use the "zW" option
so that special prologue/epilogue sequences are generated.  Furthermore,
callback functions require larger prologue/epilogue sequences than those
generated when the "zW" compiler option is specified.  The following form of
the auxiliary pragma will cause a callback prologue/epilogue sequence to be
generated for a callback function when compiled using the "zW" option.

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

where
    description

sym
    is a callback function name.

Alternatively, the "zw" compiler option can be used to generate callback
prologue/epilogue sequences.  However, all functions contained in a module
compiled using the "zw" option will have a callback prologue/epilogue
sequence even if the functions are not callback functions.

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