aboutsummaryrefslogtreecommitdiff
path: root/src/common.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-06-03 15:06:40 +0100
committergingerBill <bill@gingerbill.org>2018-06-03 15:06:40 +0100
commitd556fa2cd8570363a66a7d8a2a5abf5ba306e954 (patch)
treee7ceed61e3bdfba8515f5c4048066b5567b71a7a /src/common.cpp
parent9bd7f023b204974264fc99ee268fd9e8a5df9570 (diff)
Remove special shared scope for runtime stuff
Diffstat (limited to 'src/common.cpp')
-rw-r--r--src/common.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common.cpp b/src/common.cpp
index 1a9a4e363..82a1685c4 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -40,13 +40,13 @@ GB_ALLOCATOR_PROC(heap_allocator_proc);
gbAllocator heap_allocator(void) {
gbAllocator a;
a.proc = heap_allocator_proc;
- a.data = NULL;
+ a.data = nullptr;
return a;
}
GB_ALLOCATOR_PROC(heap_allocator_proc) {
- void *ptr = NULL;
+ void *ptr = nullptr;
gb_unused(allocator_data);
gb_unused(old_size);
@@ -348,7 +348,7 @@ void *pool_alloc(Pool *pool, isize size, isize align) {
}
GB_ALLOCATOR_PROC(pool_allocator_proc) {
- void *ptr = NULL;
+ void *ptr = nullptr;
Pool *pool = cast(Pool *)allocator_data;