
- Dyamically load minimum crt symbols in os backend so we don't need to #include c headers - Some more os calls: - write to stdout (with our string type) - macros for variadic argument lists - Dynamic library loading
27 lines
No EOL
339 B
C
27 lines
No EOL
339 B
C
|
|
#include "base.c"
|
|
|
|
#include "string.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();
|
|
} |