diff options
| author | gingerBill <bill@gingerbill.org> | 2024-06-20 15:32:30 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-06-20 15:32:30 +0100 |
| commit | dab3c832e00a3186bddc79585d9ba7ee10d39eaf (patch) | |
| tree | 92a9947ad6f4c26250e791c259ecc17fe622a4db /core | |
| parent | 94a8c38d86460710df485a11e639e978c8b922cd (diff) | |
Add `#warning(<string>)` builtin compile time procedure
Diffstat (limited to 'core')
| -rw-r--r-- | core/odin/parser/parser.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/odin/parser/parser.odin b/core/odin/parser/parser.odin index 6b0aa2888..7edd509d0 100644 --- a/core/odin/parser/parser.odin +++ b/core/odin/parser/parser.odin @@ -1438,7 +1438,7 @@ parse_stmt :: proc(p: ^Parser) -> ^ast.Stmt { case: error(p, stmt.pos, "#partial can only be applied to a switch statement") } return stmt - case "assert", "panic": + case "assert", "panic", "warning": bd := ast.new(ast.Basic_Directive, tok.pos, end_pos(tag)) bd.tok = tok bd.name = name |