mirror of
https://github.com/SAT-R/sa2.git
synced 2026-10-28 09:43:38 +00:00
Some tools align with SA2
This commit is contained in:
1 parent
b729dbb542
commit
cbefd73d20
3 files changed
+6
-4
No files matched your search
Vendored
+3
@@ -3,6 +3,9 @@ CC = gcc
|
||||
|
||||
SOURCE = arena_alloc.c
|
||||
|
||||
# Clear the default suffixes
|
||||
.SUFFIXES:
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: libarena_alloc.a
|
||||
|
||||
+1
-2
@@ -53,8 +53,7 @@ static void *memArenaVirtualAlloc(void* baseAddress, size_t size) {
|
||||
u64 memoryAmount = ARENA_SIZE;
|
||||
memory = VirtualAlloc(baseAddress, memoryAmount, (MEM_COMMIT | MEM_RESERVE), PAGE_READWRITE);
|
||||
#else
|
||||
// TODO/TEMP: Just reserve 2GB for each arena
|
||||
u64 memoryAmount = GetGigabytes(1);
|
||||
u64 memoryAmount = ARENA_SIZE;
|
||||
printf("WARNING: OS-specific SDK not found. Using malloc.\n");
|
||||
memory = malloc(memoryAmount);
|
||||
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
@echo off
|
||||
|
||||
REM Debug version - creates a PDB file
|
||||
cl /Od /Zi -I ../arena_alloc example_main.c parser.c ../arena_alloc/arena_alloc.c
|
||||
cl /Od /Zi -I ../arena_alloc example_main.c c_header_parser.c ../arena_alloc/arena_alloc.c
|
||||
|
||||
REM Release version
|
||||
REM cl /O2 -I ../arena_alloc example_main.c parser.c ../arena_alloc/arena_alloc.c
|
||||
REM cl /O2 -I ../arena_alloc example_main.c c_header_parser.c ../arena_alloc/arena_alloc.c
|
||||
Reference in new issue
Block a user