mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 01:14:40 +00:00
Add #warning(<string>) builtin compile time procedure
This commit is contained in:
@@ -5167,7 +5167,7 @@ gb_internal Ast *parse_stmt(AstFile *f) {
|
||||
break;
|
||||
}
|
||||
return s;
|
||||
} else if (tag == "assert" || tag == "panic") {
|
||||
} else if (tag == "assert" || tag == "panic" || tag == "warning") {
|
||||
Ast *t = ast_basic_directive(f, hash_token, name);
|
||||
Ast *stmt = ast_expr_stmt(f, parse_call_expr(f, t));
|
||||
expect_semicolon(f);
|
||||
|
||||
Reference in New Issue
Block a user