• michael-grunder's avatar
    Add a panic helper for non-assert aborts. · 69dba2d2
    michael-grunder authored
    We merged a fix for a "maybe uninitialized" warning in #1209, but after
    merging there could actually have then been a double free.
    
    The reason is that when compiling with NDEBUG our assert macro becomes a
    no-op, meaning that execution would no longer stop after `assert(NULL)`.
    
    This commit just adds a simple panic macro which will execute regardless
    of whether NDEBUG is defined or not.
    69dba2d2
test.c 83.6 KB