scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit d0edc9c7bc12d2a7a172e8be1ca44a671dca5d98
parent 1b6227fff18f7388065016b4dde3346e2683ae19
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri,  5 Jul 2013 16:24:12 +0200

Remove ifndef in types.c

These ifndef were put only to avoid some code in release code, but
using a assert(0) is cleaner.

Diffstat:
types.c | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/types.c b/types.c @@ -61,10 +61,8 @@ mktype(register struct ctype *tp, unsigned char op) case CONST: tp->c_const = 1; break; -#ifndef NDEBUG default: - abort(); -#endif + assert(0); } return tp; } @@ -146,10 +144,8 @@ btype(struct ctype *tp, unsigned char tok) else if (type == LONG) type = LDOUBLE; break; -#ifndef NDEBUG default: - abort(); -#endif + assert(0); } tp->type = type; return tp;