platform files, core_init

This commit is contained in:
krzosa
2024-12-30 21:49:19 +01:00
parent 46084a3412
commit ea6cba3946
21 changed files with 492 additions and 435 deletions

View File

@@ -1,45 +0,0 @@
#if PLATFORM_WINDOWS
#define NOMINMAX
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#if PLATFORM_ADDRESS_SANITIZER
#include <sanitizer/asan_interface.h>
#endif
#if !defined(ASAN_POISON_MEMORY_REGION)
#define MA_ASAN_POISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size))
#define MA_ASAN_UNPOISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size))
#else
#define MA_ASAN_POISON_MEMORY_REGION(addr, size) ASAN_POISON_MEMORY_REGION(addr, size)
#define MA_ASAN_UNPOISON_MEMORY_REGION(addr, size) ASAN_UNPOISON_MEMORY_REGION(addr, size)
#endif
#if PLATFORM_WASM
fn double strtod(const char *str, char **end_unused);
fn void puts(const char *str);
fn void alert(s8_t string);
#endif
#if PLATFORM_CL
#include <math.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#endif
#include "core_intrin.c"
#include "core_unicode.c"
#include "core_math.c"
#include "core_math.gen.c"
#include "core_arena.c"
#define STB_SPRINTF_IMPLEMENTATION
#include "stb_sprintf.h"
#include "core_string.c"
#include "core_log.c"
#include "core_lexer.c"
#include "core_type_info.c"