u3: refactors fatal exception handling in u3m_bail()
@@ -651,30 +651,15 @@ u3m_bail(u3_noun how)
}
}
+ // intercept fatal errors
+ //
switch ( how ) {
- case c3__fail: {
- break;
- }
-
- case c3__meme: {
+ case c3__foul:
+ case c3__meme:
+ case c3__oops: {
fprintf(stderr, "bailing out\r\n");
abort();
}
- case c3__exit: {
-
- static c3_w xuc_w = 0;
-
- {
- // u3l_log("exit %d\r\n", xuc_w);
- // if ( 49 == xuc_w ) { abort(); }
- xuc_w++;
- break;
- }
- }
- case c3__foul:
- case c3__oops:
- fprintf(stderr, "bailing out\r\n");
- assert(0);
}
if ( &(u3H->rod_u) == u3R ) {
