avoid a crash in directives

This commit is contained in:
ceriel 1990-04-24 14:07:07 +00:00
parent 536b12010f
commit 8fe53f501f

View file

@ -142,8 +142,9 @@ DoDirective(directive, nd, tp, scl, function)
break; break;
default: default:
crash("(DoDirective)"); node_error(nd, "\"%s\" unknown directive",
/* NOTREACHED */ directive->id_text);
return;
} }
if( df = define(nd->nd_IDF, CurrentScope, kind) ) { if( df = define(nd->nd_IDF, CurrentScope, kind) ) {