You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are right. The difference is subtle but meaningful. Like assert() macro and NDEBUG. Even if NDEBUG=0, assert deactivates itself. These need to be checked.
Hi,
When you detect that a function is missing, you define HAVE_FOO=0 in the command line (via add_definitions) and test it in the code like this:
This is wrong since FOO is defined, regardless of its value.
The fix consists in either changing
#if defined(HAVE_FOO)
to#if HAVE_FOO
or to remove the add_definitions() when the valus is zero.source: https://stackoverflow.com/a/21312684
Regards
The text was updated successfully, but these errors were encountered: