
- Some compile options that make sense for build.bat, and a build_release.bat - oogabooga: - Big buffer program_memory that always has same base address (goodbye serialisation problems) - Big buffer grows as needed, crash when out of memory - Very sexy platform abstraction & basic os call procedures - Heap allocator around the program memory. - Jaiyfication (context, context.allocator, push_allocator, temp allocator) - Some tests to make sure we ooga the right boogas
29 lines
No EOL
397 B
C
29 lines
No EOL
397 B
C
|
|
#include <stdio.h> // #Cleanup just using this for printf
|
|
#include <stdlib.h>
|
|
|
|
#include "base.c"
|
|
|
|
#include "os_interface.c"
|
|
|
|
#include "memory.c"
|
|
|
|
|
|
|
|
|
|
#ifdef OS_WINDOWS
|
|
#include "os_impl_windows.c"
|
|
#elif defined (OS_LINUX)
|
|
|
|
#elif defined (OS_MAC)
|
|
|
|
#endif
|
|
|
|
#include "tests.c"
|
|
|
|
|
|
void oogabooga_init(u64 program_memory_size) {
|
|
os_init(program_memory_size);
|
|
heap_init();
|
|
temporary_storage_init();
|
|
} |