QPMS
Electromagnetic multiple scattering library and toolkit.
assert_cython_workaround.h
1 // The purpose of this file is to enable assertions in cython modules.
2 // By default, cython includes -DNDEBUG argument when running gcc and
3 // it seems this can not be disabled. Therefore, we force undefining
4 // NDEBUG in the code if DISABLE_NDEBUG is defined.
5 #ifndef ASSERT_CYTHON_H
6 #define ASSERT_CYTHON_H
7 
8 #ifdef DISABLE_NDEBUG
9 #undef NDEBUG
10 #endif
11 
12 #include <assert.h>
13 
14 #endif // ASSERT_CYTHON_H