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 way functions are to return http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Using auxiliary pragmas, you can describe the way functions are to return
values.  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 the way a function
returns its value is the following.

+--------------------------------------------------------------------------+
|      #pragma aux sym value {no8087 | reg_set | struct_info} [;]          |
|                                                                          |
|      struct_info ::= struct {float | struct | (routine | caller) |       |
| reg_set}                                                                 |
|                                                                          |
+--------------------------------------------------------------------------+

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