| 1 | /*********************************************************************** |
| 2 | * |
| 3 | * This section contains generic SWIG labels for method/variable |
| 4 | * declarations/attributes, and other compiler dependent labels. |
| 5 | * |
| 6 | ************************************************************************/ |
| 7 | |
| 8 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
| 9 | #ifndef SWIGTEMPLATEDISAMBIGUATOR |
| 10 | # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) |
| 11 | # define SWIGTEMPLATEDISAMBIGUATOR template |
| 12 | # else |
| 13 | # define SWIGTEMPLATEDISAMBIGUATOR |
| 14 | # endif |
| 15 | #endif |
| 16 | |
| 17 | /* inline attribute */ |
| 18 | #ifndef SWIGINLINE |
| 19 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) |
| 20 | # define SWIGINLINE inline |
| 21 | # else |
| 22 | # define SWIGINLINE |
| 23 | # endif |
| 24 | #endif |
| 25 | |
| 26 | /* attribute recognised by some compilers to avoid 'unused' warnings */ |
| 27 | #ifndef SWIGUNUSED |
| 28 | # if defined(__GNUC__) || defined(__ICC) |
| 29 | # define SWIGUNUSED __attribute__ ((unused)) |
| 30 | # else |
| 31 | # define SWIGUNUSED |
| 32 | # endif |
| 33 | #endif |
| 34 | |
| 35 | /* internal SWIG method */ |
| 36 | #ifndef SWIGINTERN |
| 37 | # define SWIGINTERN static SWIGUNUSED |
| 38 | #endif |
| 39 | |
| 40 | /* internal inline SWIG method */ |
| 41 | #ifndef SWIGINTERNINLINE |
| 42 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE |
| 43 | #endif |
| 44 | |
| 45 | /* exporting methods for Windows DLLs */ |
| 46 | #ifndef SWIGEXPORT |
| 47 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
| 48 | # if defined(STATIC_LINKED) |
| 49 | # define SWIGEXPORT |
| 50 | # else |
| 51 | # define SWIGEXPORT __declspec(dllexport) |
| 52 | # endif |
| 53 | # else |
| 54 | # define SWIGEXPORT |
| 55 | # endif |
| 56 | #endif |
| 57 | |
| 58 | /* calling conventions for Windows */ |
| 59 | #ifndef SWIGSTDCALL |
| 60 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
| 61 | # define SWIGSTDCALL __stdcall |
| 62 | # else |
| 63 | # define SWIGSTDCALL |
| 64 | # endif |
| 65 | #endif |
| 66 | |