scc

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

commit e179d9ca799142833e93edc318495322a1d62058
parent 3229d11bed9d231780b4e126b2c091c102720891
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed,  3 Jul 2013 23:59:04 +0200

Add NDEBUG guards in a abort call

This abort call will be only called when the code is incorrect, so
it is not desirable having it in a production system.

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

diff --git a/types.c b/types.c @@ -128,8 +128,10 @@ btype(unsigned char type, unsigned char tok) if (type == LONG) return LDOUBLE; break; +#ifndef NDEBUG default: abort(); +#endif } error("two or more basic types"); }