added comment about using @extern()

This commit is contained in:
johan0A 2024-09-20 16:03:37 +02:00
parent 89d89985dd
commit c26a0ad529

View file

@ -228,6 +228,7 @@ pub fn ClayArray(comptime T: type) type {
} }
const extern_elements = struct { const extern_elements = struct {
// TODO: should use @extern instead but zls does not yet support it well
// Foreign function declarations // Foreign function declarations
extern "c" fn Clay_MinMemorySize() u32; extern "c" fn Clay_MinMemorySize() u32;
extern "c" fn Clay_CreateArenaWithCapacityAndMemory(capacity: u32, offset: [*]u8) Arena; extern "c" fn Clay_CreateArenaWithCapacityAndMemory(capacity: u32, offset: [*]u8) Arena;