In this project, there's these lines of code
How do I actually set it so that these DEBUG things trigger?Code:#ifdef DEBUG fprintf(stderr, "add filter failed\n"); #endif
In the same file, at the top, would I just do
?Code:#define DEBUG
In this project, there's these lines of code
How do I actually set it so that these DEBUG things trigger?Code:#ifdef DEBUG fprintf(stderr, "add filter failed\n"); #endif
In the same file, at the top, would I just do
?Code:#define DEBUG
Yes.
Yes. Another way is via the command line (well, for most compilers, anyway). For example, with GCC you can use the -D switch (ie: -DDEBUG).
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }