if (!result_is_local) emit_store_instruction(mod, &code, if_expr->type, offset);
else WIL(WI_LOCAL_SET, result_local);
+ offset = 0;
WI(WI_ELSE);
if (!result_is_local) emit_local_location(mod, &code, (AstLocal *) if_expr, &offset);
emit_leave_structured_block(mod, &code);
+ offset = 0;
if (!result_is_local) {
emit_local_location(mod, &code, (AstLocal *) if_expr, &offset);
emit_load_instruction(mod, &code, if_expr->type, offset);
return a if a > b else b;
}
+V2 :: struct { x, y: f32; }
+
main :: (args: [] cstr) {
condition := 12 > 34;
println("True" if x > 5000 else "False" if false else "REALLY FALSE");
println(new_max(10, 20));
+
+ v: V2 = (.{ 10, 20 }) if true else .{ 30, 40 };
+ printf("{}\n", v);
}
\ No newline at end of file