metagen: simplify enum generation; reading/organization pass over raddbgi_from_pdb

This commit is contained in:
Ryan Fleury
2024-02-13 10:55:06 -08:00
parent 4a9e5512f6
commit ea840a71e8
27 changed files with 1149 additions and 765 deletions
+4 -4
View File
@@ -49,11 +49,11 @@ CTRL_ExceptionCodeKindTable:
////////////////////////////////
//~ rjf: Generators
@table_gen_enum CTRL_ExceptionCodeKind:
@enum CTRL_ExceptionCodeKind:
{
`CTRL_ExceptionCodeKind_Null,`;
@expand(CTRL_ExceptionCodeKindTable a) `CTRL_ExceptionCodeKind_$(a.name),`;
`CTRL_ExceptionCodeKind_COUNT`;
Null,
@expand(CTRL_ExceptionCodeKindTable a) `$(a.name)`,
COUNT,
}
@table_gen_data(type:U32, fallback:0)
+1 -1
View File
@@ -46,7 +46,7 @@ CTRL_ExceptionCodeKind_Win32ProcedureNotFound,
CTRL_ExceptionCodeKind_Win32SanitizerErrorDetected,
CTRL_ExceptionCodeKind_Win32SanitizerRawAccessViolation,
CTRL_ExceptionCodeKind_Win32DirectXDebugLayer,
CTRL_ExceptionCodeKind_COUNT
CTRL_ExceptionCodeKind_COUNT,
} CTRL_ExceptionCodeKind;
U32 ctrl_exception_code_kind_code_table[] =