Open EricR86 opened 5 years ago
Original comment by Michael Hoffman (Bitbucket: hoffman, GitHub: michaelmhoffman).
Would be best if we switched most uses of assert()
to a function we define that isn't compiled out without NDEBUG
and has a friendlier error message.
Original report (archived issue) by Eric Roberts (Bitbucket: ericr86, GitHub: ericr86).
In
genomedata_load_data.c
there are a large amount of assert statements used to check return values from functions. These assert macros may wrap around the function calls themselves however, and depending on the environment configuration, may remove the function call altogether. For example in main:If 'NDEBUG' is defined as a marco (e.g. in
CPPFLAGS
) then no arguments get parsed withargp_parse
. This has shown to be an issue recently in conda environments.