parent
31b3b782a1
commit
12a245183f
7 changed files with 18 additions and 18 deletions
|
|
@ -138,7 +138,7 @@ In addition, SWIG defines the following set of standard C/C++ macros:
|
|||
<pre>
|
||||
__LINE__ Current line number
|
||||
__FILE__ Current file name
|
||||
__STDC__ Defined to indicate ANSI C
|
||||
__STDC__ Defined to indicate ISO C
|
||||
__cplusplus Defined when -c++ option used
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -180,9 +180,9 @@ More complex macros can be defined in the standard way. For example:
|
|||
<pre>
|
||||
#define EXTERN extern
|
||||
#ifdef __STDC__
|
||||
#define _ANSI(args) (args)
|
||||
#define ISOC_(args) (args)
|
||||
#else
|
||||
#define _ANSI(args) ()
|
||||
#define ISOC_(args) ()
|
||||
#endif
|
||||
</pre>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue