mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-28 02:10:06 +00:00
Add mem.Allocator_Mode.Query_Features, mem.Allocator_Mode_Set, mem.query_features`
This commit is contained in:
@@ -251,8 +251,11 @@ Allocator_Mode :: enum byte {
|
||||
Free,
|
||||
Free_All,
|
||||
Resize,
|
||||
Query_Features,
|
||||
}
|
||||
|
||||
Allocator_Mode_Set :: distinct bit_set[Allocator_Mode];
|
||||
|
||||
Allocator_Proc :: #type proc(allocator_data: rawptr, mode: Allocator_Mode,
|
||||
size, alignment: int,
|
||||
old_memory: rawptr, old_size: int, flags: u64 = 0, location: Source_Code_Location = #caller_location) -> rawptr;
|
||||
@@ -263,7 +266,7 @@ Allocator :: struct {
|
||||
|
||||
// Logging stuff
|
||||
|
||||
Logger_Level :: enum {
|
||||
Logger_Level :: enum uint {
|
||||
Debug = 0,
|
||||
Info = 10,
|
||||
Warning = 20,
|
||||
|
||||
Reference in New Issue
Block a user