1
0
Fork 0

use C ABI for attribute writeback typeinfo

This commit is contained in:
Simon Renblad 2024-10-25 14:38:14 +08:00
parent 3b52d3e765
commit 4d3895094d
1 changed files with 2 additions and 0 deletions

View File

@ -25,12 +25,14 @@ extern "C" {
}
unsafe fn attribute_writeback(typeinfo: *const ()) {
#[repr(C)]
struct Attr {
offset: usize,
tag: CSlice<'static, u8>,
name: CSlice<'static, u8>,
}
#[repr(C)]
struct Type {
attributes: *const *const Attr,
objects: *const *const (),