summaryrefslogtreecommitdiff
path: root/asm/preproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'asm/preproc.c')
-rw-r--r--asm/preproc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/asm/preproc.c b/asm/preproc.c
index 404d3ecb..cd4a9494 100644
--- a/asm/preproc.c
+++ b/asm/preproc.c
@@ -4430,6 +4430,16 @@ again:
ttt->text, 0);
ptail = &pt->next;
ttt = ttt->next;
+ if (!ttt && i > 0) {
+ /*
+ * FIXME: Need to handle more gracefully,
+ * exiting early on agruments analysis.
+ */
+ nasm_error(ERR_FATAL,
+ "macro `%s' expects %d args",
+ mstart->text,
+ (int)paramsize[t->type - TOK_SMAC_PARAM]);
+ }
}
tline = pcopy;
} else if (t->type == TOK_PREPROC_Q) {