Notes on evaluating Δ_n factor in the lattice sums.
[qpms.git] / qpms / assert_cython_workaround.h
blobd59af2ad13262065a988ebb0598f8537897ca9b1
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
8 #ifdef DISABLE_NDEBUG
9 #undef NDEBUG
10 #endif
12 #include <assert.h>
14 #endif // ASSERT_CYTHON_H