mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Forgot the fix...
This commit is contained in:
@@ -2867,6 +2867,12 @@ EXIT:
|
|||||||
SEMA_NOTE(decl, "The macro was declared here.");
|
SEMA_NOTE(decl, "The macro was declared here.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (call_expr->type == type_untypedlist)
|
||||||
|
{
|
||||||
|
SEMA_ERROR(call_expr, "The macro returns an untyped list, but the macro did not evaluate to a constant. The macro needs to explicitly cast the return value to the expected type.");
|
||||||
|
SEMA_NOTE(decl, "The macro was declared here.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
EXIT_FAIL:
|
EXIT_FAIL:
|
||||||
|
|||||||
Reference in New Issue
Block a user