aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-06-20 15:32:30 +0100
committergingerBill <bill@gingerbill.org>2024-06-20 15:32:30 +0100
commitdab3c832e00a3186bddc79585d9ba7ee10d39eaf (patch)
tree92a9947ad6f4c26250e791c259ecc17fe622a4db /src/parser.cpp
parent94a8c38d86460710df485a11e639e978c8b922cd (diff)
Add `#warning(<string>)` builtin compile time procedure
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 0cd96f5b5..7383c3360 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -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);