Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

102 lines
3.0 KiB

  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 SWIGUNUSEDPARM
  40. # ifdef __cplusplus
  41. # define SWIGUNUSEDPARM(p)
  42. # else
  43. # define SWIGUNUSEDPARM(p) p SWIGUNUSED
  44. # endif
  45. #endif
  46. /* internal SWIG method */
  47. #ifndef SWIGINTERN
  48. # define SWIGINTERN static SWIGUNUSED
  49. #endif
  50. /* internal inline SWIG method */
  51. #ifndef SWIGINTERNINLINE
  52. # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
  53. #endif
  54. /* exporting methods */
  55. #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
  56. # ifndef GCC_HASCLASSVISIBILITY
  57. # define GCC_HASCLASSVISIBILITY
  58. # endif
  59. #endif
  60. #ifndef SWIGEXPORT
  61. # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
  62. # if defined(STATIC_LINKED)
  63. # define SWIGEXPORT
  64. # else
  65. # define SWIGEXPORT __declspec(dllexport)
  66. # endif
  67. # else
  68. # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
  69. # define SWIGEXPORT __attribute__ ((visibility("default")))
  70. # else
  71. # define SWIGEXPORT
  72. # endif
  73. # endif
  74. #endif
  75. /* calling conventions for Windows */
  76. #ifndef SWIGSTDCALL
  77. # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
  78. # define SWIGSTDCALL __stdcall
  79. # else
  80. # define SWIGSTDCALL
  81. # endif
  82. #endif
  83. /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
  84. #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
  85. # define _CRT_SECURE_NO_DEPRECATE
  86. #endif
  87. /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
  88. #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
  89. # define _SCL_SECURE_NO_DEPRECATE
  90. #endif