mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-14 06:13:45 +00:00
Begin to support constant array of unions
This commit is contained in:
@@ -27,6 +27,24 @@ enum AddressingMode : u8 {
|
||||
Addressing_SwizzleVariable = 14, // Swizzle indexed variable
|
||||
};
|
||||
|
||||
gb_global String const addressing_mode_strings[] = {
|
||||
str_lit("Invalid"),
|
||||
str_lit("NoValue"),
|
||||
str_lit("Value"),
|
||||
str_lit("Context"),
|
||||
str_lit("Variable"),
|
||||
str_lit("Constant"),
|
||||
str_lit("Type"),
|
||||
str_lit("Builtin"),
|
||||
str_lit("ProcGroup"),
|
||||
str_lit("MapIndex"),
|
||||
str_lit("OptionalOk"),
|
||||
str_lit("OptionalOkPtr"),
|
||||
str_lit("SoaVariable"),
|
||||
str_lit("SwizzleValue"),
|
||||
str_lit("SwizzleVariable"),
|
||||
};
|
||||
|
||||
struct TypeAndValue {
|
||||
Type * type;
|
||||
AddressingMode mode;
|
||||
|
||||
Reference in New Issue
Block a user