OLD | NEW |
(Empty) | |
| 1 /* ----------------------------------------------------------------------------- |
| 2 * This section contains generic SWIG labels for method/variable |
| 3 * declarations/attributes, and other compiler dependent labels. |
| 4 * -----------------------------------------------------------------------------
*/ |
| 5 |
| 6 /* template workaround for compilers that cannot correctly implement the C++ sta
ndard */ |
| 7 #ifndef SWIGTEMPLATEDISAMBIGUATOR |
| 8 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) |
| 9 # define SWIGTEMPLATEDISAMBIGUATOR template |
| 10 # elif defined(__HP_aCC) |
| 11 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 *
/ |
| 12 /* If we find a maximum version that requires this, the test would be __HP_aCC <
= 35500 for A.03.55 */ |
| 13 # define SWIGTEMPLATEDISAMBIGUATOR template |
| 14 # else |
| 15 # define SWIGTEMPLATEDISAMBIGUATOR |
| 16 # endif |
| 17 #endif |
| 18 |
| 19 /* inline attribute */ |
| 20 #ifndef SWIGINLINE |
| 21 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) |
| 22 # define SWIGINLINE inline |
| 23 # else |
| 24 # define SWIGINLINE |
| 25 # endif |
| 26 #endif |
| 27 |
| 28 /* attribute recognised by some compilers to avoid 'unused' warnings */ |
| 29 #ifndef SWIGUNUSED |
| 30 # if defined(__GNUC__) |
| 31 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINO
R__ >= 4)) |
| 32 # define SWIGUNUSED __attribute__ ((__unused__)) |
| 33 # else |
| 34 # define SWIGUNUSED |
| 35 # endif |
| 36 # elif defined(__ICC) |
| 37 # define SWIGUNUSED __attribute__ ((__unused__)) |
| 38 # else |
| 39 # define SWIGUNUSED |
| 40 # endif |
| 41 #endif |
| 42 |
| 43 #ifndef SWIG_MSC_UNSUPPRESS_4505 |
| 44 # if defined(_MSC_VER) |
| 45 # pragma warning(disable : 4505) /* unreferenced local function has been remov
ed */ |
| 46 # endif |
| 47 #endif |
| 48 |
| 49 #ifndef SWIGUNUSEDPARM |
| 50 # ifdef __cplusplus |
| 51 # define SWIGUNUSEDPARM(p) |
| 52 # else |
| 53 # define SWIGUNUSEDPARM(p) p SWIGUNUSED |
| 54 # endif |
| 55 #endif |
| 56 |
| 57 /* internal SWIG method */ |
| 58 #ifndef SWIGINTERN |
| 59 # define SWIGINTERN static SWIGUNUSED |
| 60 #endif |
| 61 |
| 62 /* internal inline SWIG method */ |
| 63 #ifndef SWIGINTERNINLINE |
| 64 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE |
| 65 #endif |
| 66 |
| 67 /* exporting methods */ |
| 68 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) |
| 69 # ifndef GCC_HASCLASSVISIBILITY |
| 70 # define GCC_HASCLASSVISIBILITY |
| 71 # endif |
| 72 #endif |
| 73 |
| 74 #ifndef SWIGEXPORT |
| 75 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
| 76 # if defined(STATIC_LINKED) |
| 77 # define SWIGEXPORT |
| 78 # else |
| 79 # define SWIGEXPORT __declspec(dllexport) |
| 80 # endif |
| 81 # else |
| 82 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) |
| 83 # define SWIGEXPORT __attribute__ ((visibility("default"))) |
| 84 # else |
| 85 # define SWIGEXPORT |
| 86 # endif |
| 87 # endif |
| 88 #endif |
| 89 |
| 90 /* calling conventions for Windows */ |
| 91 #ifndef SWIGSTDCALL |
| 92 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
| 93 # define SWIGSTDCALL __stdcall |
| 94 # else |
| 95 # define SWIGSTDCALL |
| 96 # endif |
| 97 #endif |
| 98 |
| 99 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ |
| 100 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_
CRT_SECURE_NO_DEPRECATE) |
| 101 # define _CRT_SECURE_NO_DEPRECATE |
| 102 #endif |
| 103 |
| 104 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ libr
ary */ |
| 105 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_
SCL_SECURE_NO_DEPRECATE) |
| 106 # define _SCL_SECURE_NO_DEPRECATE |
| 107 #endif |
| 108 |
OLD | NEW |