export CodeView types as aliases to its builtin counter-parts,

This commit is contained in:
Nikita Smith
2025-03-27 13:47:47 -07:00
parent 53c889e5d3
commit 49ba163077
7 changed files with 175 additions and 54 deletions
+17
View File
@@ -1489,6 +1489,23 @@ rdi_hash(RDI_U8 *ptr, RDI_U64 size)
}
```
@gen(functions) @c_file
{
`RDI_PROC RDI_U8 *`;
`rdi_string_from_type_kind(RDI_TypeKind kind, RDI_U64 *size_out)`;
`{`;
`RDI_U8 *result = 0;`;
`*size_out = 0;`;
`switch (kind)`;
`{`;
`default:{}break;`;
@expand(RDI_TypeKindTable a) ` case RDI_TypeKind_$(a.name): {result = "$(a.name)"; *size_out = sizeof("$(a.name)")-1;}break;`,
`}`;
`return result;`;
`}`;
``;
}
@gen(functions) @c_file
{
`RDI_PROC RDI_U32`;