Commit e07ae7d
committed
Add a panic helper for non-assert aborts.
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.1 parent bfe45d9 commit e07ae7d
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
107 | 114 | | |
108 | 115 | | |
109 | 116 | | |
| |||
232 | 239 | | |
233 | 240 | | |
234 | 241 | | |
235 | | - | |
| 242 | + | |
236 | 243 | | |
237 | 244 | | |
238 | 245 | | |
| |||
1352 | 1359 | | |
1353 | 1360 | | |
1354 | 1361 | | |
1355 | | - | |
| 1362 | + | |
1356 | 1363 | | |
1357 | 1364 | | |
1358 | 1365 | | |
| |||
1368 | 1375 | | |
1369 | 1376 | | |
1370 | 1377 | | |
1371 | | - | |
| 1378 | + | |
1372 | 1379 | | |
1373 | 1380 | | |
1374 | 1381 | | |
| |||
0 commit comments