feat: generate records from compile-time collections
This commit is contained in:
@@ -113,6 +113,9 @@ Code :: enum {
|
||||
specialization_limit
|
||||
comptime_execution_limit
|
||||
comptime_value_escape
|
||||
invalid_generated_field_name
|
||||
invalid_struct_layout
|
||||
invalid_c_record_field_type
|
||||
}
|
||||
|
||||
Diagnostic :: struct {
|
||||
@@ -247,5 +250,8 @@ 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",
|
||||
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",
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user