}
put :: (use map: ^Map, key: map.Key_Type, value: map.Value_Type) {
- if map.hashes.data == null do init(map);
lr := lookup(map, key);
if lr.entry_index >= 0 {
break;
}
+ case Ast_Kind_Code_Block: {
+ // Like above, this error message should be moved to checking, but
+ // this is the best place to do it right now.
+ onyx_report_error(expr->token->pos, Error_Critical, "'#code' blocks are only to be used at compile-time. Using them as a runtime value is not allowed.");
+ break;
+ }
+
default:
bh_printf("Unhandled case: %d\n", expr->kind);
DEBUG_HERE;
printf("Part 1: {}\n", flash_count);
printf("Part 2: {}\n", sync_step);
}
-}
\ No newline at end of file
+}
}
Node :: struct { name: str; child_idx: u32; second_visit: bool; }
- node_stack: [..] Node;
+ node_stack: [..] Node;
node_stack << .{ "start", 0, false };
children_of :: (edges: ^$T, name: str) -> Iterator(str) {
printf("Part 2: {}\n", paths_count);
}
-}
\ No newline at end of file
+}