1 /* -----------------------------------------------------------------------------
2 * This section contains generic SWIG labels for method/variable
3 * declarations/attributes, and other compiler dependent labels.
4 * ----------------------------------------------------------------------------- */
6 /* template workaround for compilers that cannot correctly implement the C++ standard */
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
15 # define SWIGTEMPLATEDISAMBIGUATOR
19 /* inline attribute */
21 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
22 # define SWIGINLINE inline
28 /* attribute recognised by some compilers to avoid 'unused' warnings */
30 # if defined(__GNUC__)
31 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
32 # define SWIGUNUSED __attribute__ ((__unused__))
37 # define SWIGUNUSED __attribute__ ((__unused__))
43 #ifndef SWIG_MSC_UNSUPPRESS_4505
44 # if defined(_MSC_VER)
45 # pragma warning(disable : 4505) /* unreferenced local function has been removed */
49 #ifndef SWIGUNUSEDPARM
51 # define SWIGUNUSEDPARM(p)
53 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
57 /* internal SWIG method */
59 # define SWIGINTERN static SWIGUNUSED
62 /* internal inline SWIG method */
63 #ifndef SWIGINTERNINLINE
64 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
67 /* exporting methods */
68 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
69 # ifndef GCC_HASCLASSVISIBILITY
70 # define GCC_HASCLASSVISIBILITY
75 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
76 # if defined(STATIC_LINKED)
79 # define SWIGEXPORT __declspec(dllexport)
82 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
83 # define SWIGEXPORT __attribute__ ((visibility("default")))
90 /* calling conventions for Windows */
92 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
93 # define SWIGSTDCALL __stdcall
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
104 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
105 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
106 # define _SCL_SECURE_NO_DEPRECATE