swiglabels.swg 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /* -----------------------------------------------------------------------------
  2. * This section contains generic SWIG labels for method/variable
  3. * declarations/attributes, and other compiler dependent labels.
  4. * ----------------------------------------------------------------------------- */
  5. /* template workaround for compilers that cannot correctly implement the C++ standard */
  6. #ifndef SWIGTEMPLATEDISAMBIGUATOR
  7. # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
  8. # define SWIGTEMPLATEDISAMBIGUATOR template
  9. # elif defined(__HP_aCC)
  10. /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
  11. /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
  12. # define SWIGTEMPLATEDISAMBIGUATOR template
  13. # else
  14. # define SWIGTEMPLATEDISAMBIGUATOR
  15. # endif
  16. #endif
  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. /* attribute recognised by some compilers to avoid 'unused' warnings */
  26. #ifndef SWIGUNUSED
  27. # if defined(__GNUC__)
  28. # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
  29. # define SWIGUNUSED __attribute__ ((__unused__))
  30. # else
  31. # define SWIGUNUSED
  32. # endif
  33. # elif defined(__ICC)
  34. # define SWIGUNUSED __attribute__ ((__unused__))
  35. # else
  36. # define SWIGUNUSED
  37. # endif
  38. #endif
  39. #ifndef SWIG_MSC_UNSUPPRESS_4505
  40. # if defined(_MSC_VER)
  41. # pragma warning(disable : 4505) /* unreferenced local function has been removed */
  42. # endif
  43. #endif
  44. #ifndef SWIGUNUSEDPARM
  45. # ifdef __cplusplus
  46. # define SWIGUNUSEDPARM(p)
  47. # else
  48. # define SWIGUNUSEDPARM(p) p SWIGUNUSED
  49. # endif
  50. #endif
  51. /* internal SWIG method */
  52. #ifndef SWIGINTERN
  53. # define SWIGINTERN static SWIGUNUSED
  54. #endif
  55. /* internal inline SWIG method */
  56. #ifndef SWIGINTERNINLINE
  57. # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
  58. #endif
  59. /* exporting methods */
  60. #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
  61. # ifndef GCC_HASCLASSVISIBILITY
  62. # define GCC_HASCLASSVISIBILITY
  63. # endif
  64. #endif
  65. #ifndef SWIGEXPORT
  66. # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
  67. # if defined(STATIC_LINKED)
  68. # define SWIGEXPORT
  69. # else
  70. # define SWIGEXPORT __declspec(dllexport)
  71. # endif
  72. # else
  73. # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
  74. # define SWIGEXPORT __attribute__ ((visibility("default")))
  75. # else
  76. # define SWIGEXPORT
  77. # endif
  78. # endif
  79. #endif
  80. /* calling conventions for Windows */
  81. #ifndef SWIGSTDCALL
  82. # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
  83. # define SWIGSTDCALL __stdcall
  84. # else
  85. # define SWIGSTDCALL
  86. # endif
  87. #endif
  88. /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
  89. #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
  90. # define _CRT_SECURE_NO_DEPRECATE
  91. #endif
  92. /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
  93. #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
  94. # define _SCL_SECURE_NO_DEPRECATE
  95. #endif
  96. /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
  97. #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
  98. # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
  99. #endif
  100. /* Intel's compiler complains if a variable which was never initialised is
  101. * cast to void, which is a common idiom which we use to indicate that we
  102. * are aware a variable isn't used. So we just silence that warning.
  103. * See: https://github.com/swig/swig/issues/192 for more discussion.
  104. */
  105. #ifdef __INTEL_COMPILER
  106. # pragma warning disable 592
  107. #endif