[Bindings/Odin] fix CreateArenaWithCapacityAndMemory capacity type (#306)

This commit is contained in:
Laytan 2025-03-04 21:49:53 +01:00 committed by GitHub
parent 02bce89d17
commit 2d7d5bc082
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@ Dimensions :: struct {
Arena :: struct {
nextAllocation: uintptr,
capacity: uintptr,
capacity: c.size_t,
memory: [^]c.char,
}
@ -367,7 +367,7 @@ Context :: struct {} // opaque structure, only use as a pointer
@(link_prefix = "Clay_", default_calling_convention = "c")
foreign Clay {
MinMemorySize :: proc() -> u32 ---
CreateArenaWithCapacityAndMemory :: proc(capacity: u32, offset: [^]u8) -> Arena ---
CreateArenaWithCapacityAndMemory :: proc(capacity: c.size_t, offset: [^]u8) -> Arena ---
SetPointerState :: proc(position: Vector2, pointerDown: bool) ---
Initialize :: proc(arena: Arena, layoutDimensions: Dimensions, errorHandler: ErrorHandler) -> ^Context ---
GetCurrentContext :: proc() -> ^Context ---