mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-12-03 08:41:02 +08:00
preproc.c: warn/ignore when attempting to %un[i]macro an active macro
This commit is contained in:
parent
6a7c3e9f30
commit
c98a5b4c89
10
preproc.c
10
preproc.c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user