mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 11:20:08 +00:00
Disable pointer arithmetic
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
#define USE_THREADED_PARSER 1
|
||||
// #define NO_ARRAY_BOUNDS_CHECK
|
||||
// #define NO_POINTER_ARITHMETIC
|
||||
#define NO_POINTER_ARITHMETIC
|
||||
|
||||
#include "common.cpp"
|
||||
#include "timings.cpp"
|
||||
|
||||
+1
-2
@@ -1785,8 +1785,7 @@ struct TypePath {
|
||||
|
||||
|
||||
void type_path_init(TypePath *tp) {
|
||||
// TODO(bill): Use an allocator that uses a backing array if it can and then use alternative allocator when exhausted
|
||||
array_init(&tp->path, heap_allocator());
|
||||
tp->path.allocator = heap_allocator();
|
||||
}
|
||||
|
||||
void type_path_free(TypePath *tp) {
|
||||
|
||||
Reference in New Issue
Block a user