mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 03:40:08 +00:00
using on struct/union fields
This commit is contained in:
@@ -258,18 +258,18 @@ AllocatorProc :: type proc(allocator_data: rawptr, mode: AllocationMode,
|
||||
old_memory: rawptr, old_size: int, flags: u64) -> rawptr;
|
||||
|
||||
Allocator :: type struct {
|
||||
procedure: AllocatorProc,
|
||||
data: rawptr,
|
||||
procedure: AllocatorProc;
|
||||
data: rawptr;
|
||||
}
|
||||
|
||||
|
||||
Context :: type struct {
|
||||
thread_id: i32,
|
||||
thread_id: i32;
|
||||
|
||||
user_index: i32,
|
||||
user_data: rawptr,
|
||||
user_index: i32;
|
||||
user_data: rawptr;
|
||||
|
||||
allocator: Allocator,
|
||||
allocator: Allocator;
|
||||
}
|
||||
|
||||
#thread_local context: Context;
|
||||
|
||||
Reference in New Issue
Block a user