blob: 2eb4cb6f165580a1f05f7f47ccb0f154c970f290 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/* This list will need updating when new target languages are added. */
#if (0\
+defined(SWIGCSHARP)\
+defined(SWIGD)\
+defined(SWIGGO)\
+defined(SWIGGUILE)\
+defined(SWIGJAVA)\
+defined(SWIGJAVASCRIPT)\
+defined(SWIGLUA)\
+defined(SWIGMZSCHEME)\
+defined(SWIGOCAML)\
+defined(SWIGOCTAVE)\
+defined(SWIGPERL)\
+defined(SWIGPHP)\
+defined(SWIGPYTHON)\
+defined(SWIGR)\
+defined(SWIGRUBY)\
+defined(SWIGSCILAB)\
+defined(SWIGTCL)\
+defined(SWIGXML)\
) != 1
# ifdef SWIG
# error Did not detect exactly one target-language-specific macro defined at SWIG time.
# else
# error Did not detect exactly one target-language-specific macro defined in the generated wrapper.
# endif
#endif
/*
* This should not compile in when this bug is present
* https://github.com/swig/swig/issues/2525
*/
#define my_bad_attr __attribute__
#define my_good_attr(x) __attribute__(x)
int bad my_bad_attr((used));
int good my_good_attr((used));
|