by eqvinox · 2y ago · 0 comments
FWIW the actual answer is that libraries should be good at reporting / returning errors to the calling application in a reasonable manner instead of tripping assert()s or crashing the entire process. Which makes the question moot because ideally the library has few asserts to begin with.
Another feature of asserts is that `-DNDEBUG` disables them.