aboutsummaryrefslogtreecommitdiff
path: root/core/runtime/core.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-08-16 22:07:40 +0100
committergingerBill <bill@gingerbill.org>2020-08-16 22:07:40 +0100
commit033b46def884b94d3095f1f4fb71ca9cf0819081 (patch)
tree13d510a3d499533524a2fd56681ca88a50a3a433 /core/runtime/core.odin
parent1f571f48e5c3cf823f068e464324ff218314498f (diff)
Add `mem.Allocator_Mode.Query_Features, `mem.Allocator_Mode_Set`, `mem.query_features`
Diffstat (limited to 'core/runtime/core.odin')
-rw-r--r--core/runtime/core.odin5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/runtime/core.odin b/core/runtime/core.odin
index 1ed16d127..d3522c268 100644
--- a/core/runtime/core.odin
+++ b/core/runtime/core.odin
@@ -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,