aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorTadeo hepperle <tadeo@do-mix.de>2024-06-26 19:31:00 +0200
committerTadeo hepperle <tadeo@do-mix.de>2024-06-26 19:31:00 +0200
commit67e69f719648704c9fa118dcc7cb052d8ab30608 (patch)
treed28d893b51ba0796d41bd4fe6b86133cd3c0eb40 /src/check_builtin.cpp
parent18dadd94e3a91d1eed5938f4998b8b7a71765afb (diff)
parent8d1827838fb902be4f16b3b028ac0d299a456857 (diff)
Merge branch 'master' into fix-vulkan-codegen-arrays-as-proc-args
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index e85981911..47abd42cf 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -1714,26 +1714,6 @@ gb_internal bool check_builtin_procedure_directive(CheckerContext *c, Operand *o
operand->type = t_untyped_bool;
operand->mode = Addressing_Constant;
- } else if (name == "warning") {
- ERROR_BLOCK();
- if (ce->args.count != 1) {
- error(call, "'#warning' expects 1 argument, got %td", ce->args.count);
- return false;
- }
- if (!is_type_string(operand->type) && operand->mode != Addressing_Constant) {
- gbString str = expr_to_string(ce->args[0]);
- error(call, "'%s' is not a constant string", str);
- gb_string_free(str);
- return false;
- }
- warning(call, "%.*s", LIT(operand->value.value_string));
- if (c->proc_name != "") {
- gbString str = type_to_string(c->curr_proc_sig);
- error_line("\tCalled within '%.*s' :: %s\n", LIT(c->proc_name), str);
- gb_string_free(str);
- }
- operand->type = t_invalid;
- operand->mode = Addressing_NoValue;
} else if (name == "panic") {
ERROR_BLOCK();
if (ce->args.count != 1) {