mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-14 06:13:45 +00:00
Begin work on -bedrock mode
Currently disables 128-bit integers, `map` type, and RTTI
This commit is contained in:
@@ -2579,8 +2579,14 @@ gb_internal Ast *parse_operand(AstFile *f, bool lhs) {
|
||||
while (f->curr_token.kind != Token_CloseBrace &&
|
||||
f->curr_token.kind != Token_EOF) {
|
||||
Ast *elem = parse_expr(f, false);
|
||||
array_add(&args, elem);
|
||||
|
||||
if (f->curr_token.kind == Token_where) {
|
||||
Token where = expect_token(f, Token_where);
|
||||
Ast *cond = parse_expr(f, false);
|
||||
elem = ast_binary_expr(f, where, elem, cond);
|
||||
}
|
||||
|
||||
array_add(&args, elem);
|
||||
if (!allow_field_separator(f)) {
|
||||
break;
|
||||
}
|
||||
@@ -6388,6 +6394,11 @@ gb_internal bool parse_build_tag(Token token_for_pos, String s) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (p == "bedrock") {
|
||||
this_kind_correct = build_context.bedrock == !is_notted;
|
||||
continue;
|
||||
}
|
||||
|
||||
Subtarget subtarget = Subtarget_Invalid;
|
||||
String subtarget_str = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user