File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 77// ------------- Annotations for function ---------------
88
99// The attribute are only meaningfull for clang tools, hence for clang.
10- #ifndef __GNUC__
10+ #ifdef __clang__
1111#define C2PY_IGNORE __attribute__ ((annotate(" c2py_ignore" )))
1212#define C2PY_WRAP_AS_METHOD __attribute__ ((annotate(" c2py_wrap_as_method" )))
1313#define C2PY_MODULE_INIT __attribute__ ((annotate(" c2py_module_init" )))
1414#define C2PY_NOGIL __attribute__ ((annotate(" c2py_nogil" )))
1515#define C2PY_RENAME (X ) __attribute__((annotate(" c2py_rename:" #X)))
1616#else
17- #define C2PY_IGNORE
18- #define C2PY_WRAP_AS_METHOD
19- #define C2PY_MODULE_INIT
20- #define C2PY_NOGIL
21- #define C2PY_RENAME (X )
17+ #define C2PY_IGNORE
18+ #define C2PY_WRAP_AS_METHOD
19+ #define C2PY_MODULE_INIT
20+ #define C2PY_NOGIL
21+ #define C2PY_RENAME (X )
2222#endif
2323
2424// #define C2PY_METHODS_AS_PROPERTY __attribute__((annotate("c2py_methods_as_property")))
You can’t perform that action at this time.
0 commit comments