Prepare for macros being defined in "other ways" which are not yet put in the macro definition table.

This commit is contained in:
Olaf Seibert
2017-04-27 20:43:28 +02:00
parent e4ec481d3d
commit f07c9045f5
3 changed files with 20 additions and 11 deletions

View File

@@ -632,7 +632,7 @@ static int assemble(
saveline = stmtno;
list_level = -1;
mac = defmacro(maccp, &macstack, TRUE);
mac = defmacro(maccp, &macstack, CALLED_NOLIST);
if (mac == NULL) {
report(stack->top, "Failed to define macro " "called %s\n", label);
}
@@ -652,7 +652,7 @@ static int assemble(
case P_MACRO:
{
MACRO *mac = defmacro(cp, stack, FALSE);
MACRO *mac = defmacro(cp, stack, CALLED_NORMAL);
return mac != NULL;
}