blob: 80048b07c40cb21effb023fc1291f51532614328 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
#ifndef BASE_INCLUDE_H
#define BASE_INCLUDE_H
#ifdef BASE_DEBUG
#endif
#if defined(__linux__) || defined(__APPLE__)
#define PLATFORM_UNIX 1
#elif defined(__linux__) && !defined(__APPLE__)
#define PLATFORM_LINUX 1
#elif defined(_WIN32) || defined(_WIN64)
#define PLATFORM_WINDOWS 1
#elif defined(__APPLE__)
#define PLATFORM_APPLE 1
#warning apple
#else
#error platform unknown
#endif // platform definitions
#if PLATFORM_UNIX
#include <unistd.h>
#include <dirent.h>
#include <sys/syscall.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dlfcn.h>
#if PLATFORM_LINUX
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/keysym.h>
#endif // PLATFORM_LINUX
#elif PLATFORM_WINDOWS
#define _WIN32_WINNT 0x0601
#include <windows.h>
#endif // PLATFORM_UNIX - PLATFORM_WINDOWS
#include <vulkan/vulkan.h>
#include <wayland-client.h>
//-
#include <time.h>
#include <math.h>
#include <string.h>
#include <stdint.h>
#include <stddef.h>
#include <stdio.h>
#include <stdarg.h>
//-
#include "base_core.h"
#include "base_arena.h"
#include "base_stack.h"
#include "base_string.h"
#include "base_platform.h"
#include "base_render.h"
#include "base_arena.cpp"
#include "base_stack.cpp"
#include "base_string.cpp"
#include "base_platform.cpp"
#include "base_rand.cpp"
#include "base_simd.cpp"
#include "base_render.cpp"
#endif // BASE_INCLUDE_H
|