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 - using auxiliary pragmas, you can describe the calling convention that watcom http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Using auxiliary pragmas, you can describe the calling convention that Watcom
C/C++ is to use for calling functions.  This is particularly useful when
interfacing to functions that have been compiled by other compilers or
functions written in other programming languages.

The general form of an auxiliary pragma that describes argument passing is
the following.

+--------------------------------------------------------------------------+
|      #pragma aux sym parm { pop_info | reverse | {reg_set} } [;]         |
|                                                                          |
|      pop_info ::= caller | routine                                       |
|                                                                          |
+--------------------------------------------------------------------------+

where
    description

sym
    is a function name.

reg_set
    is called a register set.  The register sets specify the registers that
    are to be used for argument passing.  A register set is a list of
    registers separated by spaces and enclosed in square brackets.

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