ref: d0edc9c7bc12d2a7a172e8be1ca44a671dca5d98
parent: 1b6227fff18f7388065016b4dde3346e2683ae19
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Jul 5 12:24:12 EDT 2013
Remove ifndef in types.c These ifndef were put only to avoid some code in release code, but using a assert(0) is cleaner.
--- a/types.c
+++ b/types.c
@@ -61,10 +61,8 @@
case CONST:
tp->c_const = 1;
break;
-#ifndef NDEBUG
default:
- abort();
-#endif
+ assert(0);
}
return tp;
}
@@ -146,10 +144,8 @@
else if (type == LONG)
type = LDOUBLE;
break;
-#ifndef NDEBUG
default:
- abort();
-#endif
+ assert(0);
}
tp->type = type;
return tp;
--
⑨