mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
remove region/endregion directives, using editor extensions for comment signatures instead.
This commit is contained in:
@@ -2096,19 +2096,6 @@ gb_internal bool check_builtin_procedure_directive(CheckerContext *c, Operand *o
|
|||||||
array_add(&c->info->defineables, defineable);
|
array_add(&c->info->defineables, defineable);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bodging in #region & #endregion support
|
|
||||||
else if (name == "region") {
|
|
||||||
operand->type = t_untyped_bool;
|
|
||||||
operand->mode = Addressing_Constant;
|
|
||||||
operand->value = exact_value_bool(true);
|
|
||||||
}
|
|
||||||
else if (name == "endregion") {
|
|
||||||
operand->type = t_untyped_bool;
|
|
||||||
operand->mode = Addressing_Constant;
|
|
||||||
operand->value = exact_value_bool(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
else {
|
else {
|
||||||
error(call, "Unknown directive call: #%.*s", LIT(name));
|
error(call, "Unknown directive call: #%.*s", LIT(name));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7872,8 +7872,6 @@ gb_internal ExprKind check_call_expr(CheckerContext *c, Operand *operand, Ast *c
|
|||||||
name == "exists" ||
|
name == "exists" ||
|
||||||
name == "assert" ||
|
name == "assert" ||
|
||||||
name == "panic" ||
|
name == "panic" ||
|
||||||
name == "region" ||
|
|
||||||
name == "endregion" ||
|
|
||||||
name == "defined" ||
|
name == "defined" ||
|
||||||
name == "config" ||
|
name == "config" ||
|
||||||
name == "load" ||
|
name == "load" ||
|
||||||
|
|||||||
+1
-1
@@ -5364,7 +5364,7 @@ gb_internal Ast *parse_stmt(AstFile *f) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return s;
|
return s;
|
||||||
} else if (tag == "assert" || tag == "panic" || tag == "region" || tag == "endregion") {
|
} else if (tag == "assert" || tag == "panic") {
|
||||||
Ast *t = ast_basic_directive(f, hash_token, name);
|
Ast *t = ast_basic_directive(f, hash_token, name);
|
||||||
Ast *stmt = ast_expr_stmt(f, parse_call_expr(f, t));
|
Ast *stmt = ast_expr_stmt(f, parse_call_expr(f, t));
|
||||||
expect_semicolon(f);
|
expect_semicolon(f);
|
||||||
|
|||||||
Reference in New Issue
Block a user