mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-04 04:48:40 +00:00
export CodeView types as aliases to its builtin counter-parts,
This commit is contained in:
@@ -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`;
|
||||
|
||||
Reference in New Issue
Block a user