feat: expand constant inline for loops

This commit is contained in:
2026-10-28 11:22:41 +01:00
parent 741ebbf484
commit 20539ab455
13 changed files with 772 additions and 14 deletions
+2
View File
@@ -113,6 +113,7 @@ Code :: enum {
specialization_limit
comptime_execution_limit
comptime_value_escape
inline_loop_control
invalid_generated_field_name
invalid_struct_layout
invalid_c_record_field_type
@@ -250,6 +251,7 @@ messages :: $enummap.init(Code, []u8, {
specialization_limit = "compile-time specialization exceeds its recursion or instance limit",
comptime_execution_limit = "compile-time execution exceeds its recursion or step limit",
comptime_value_escape = "compile-time result cannot escape evaluation as a source value",
inline_loop_control = "break or continue targeting an inline loop must be compile-time-resolvable",
invalid_generated_field_name = "generated field name must be an ASCII identifier",
invalid_struct_layout = "generated record layout must be .auto or .c; C-layout records require at least one field",
invalid_c_record_field_type = "record field is not a supported C-layout value type",