preproc.c: warn/ignore when attempting to %un[i]macro an active macro

This commit is contained in:
Keith Kanios 2010-12-18 12:17:31 -06:00
parent 6a7c3e9f30
commit c98a5b4c89

View File

@ -2980,8 +2980,14 @@ issue_error:
ed->nparam_min == spec.nparam_min &&
ed->nparam_max == spec.nparam_max &&
ed->plus == spec.plus) {
*ed_p = ed->next;
free_expdef(ed);
if (ed->cur_depth > 0) {
error(ERR_NONFATAL, "`%s' ignored due to active macro",
pp_directives[i]);
break;
} else {
*ed_p = ed->next;
free_expdef(ed);
}
} else {
ed_p = &ed->next;
}