orca/src/milepost.c

67 lines
1.8 KiB
C
Raw Normal View History

2022-08-14 16:19:40 +00:00
/************************************************************//**
*
* @file: milepost.c
* @author: Martin Fouilleul
* @date: 13/02/2021
* @revision:
*
*****************************************************************/
2022-12-22 17:24:43 +00:00
//---------------------------------------------------------------
// utilities implementations
//---------------------------------------------------------------
2022-08-14 16:19:40 +00:00
#include"util/debug_log.c"
2022-12-22 17:24:43 +00:00
#include"util/memory.c"
#include"util/strings.c"
2022-08-14 16:19:40 +00:00
#include"util/utf8.c"
#include"util/hash.c"
2022-12-22 17:24:43 +00:00
#include"util/ringbuffer.c"
2022-08-14 16:19:40 +00:00
2022-12-22 17:24:43 +00:00
//---------------------------------------------------------------
// platform implementations
//---------------------------------------------------------------
#include"platform.h"
2022-08-14 16:19:40 +00:00
2022-12-22 17:24:43 +00:00
#if defined(OS_WIN64)
#include"platform/win32_base_allocator.c"
//TODO
#elif defined(OS_MACOS)
#include"platform/unix_base_allocator.c"
#include"platform/osx_clock.c"
/*
#include"platform/unix_rng.c"
#include"platform/posix_thread.c"
#include"platform/posix_socket.c"
*/
#elif defined(OS_LINUX)
#include"platform/unix_base_allocator.c"
#include"platform/linux_clock.c"
/*
#include"platform/unix_rng.c"
#include"platform/posix_thread.c"
#include"platform/posix_socket.c"
*/
#else
#error "Unsupported platform"
#endif
2022-08-14 16:19:40 +00:00
2022-12-22 17:24:43 +00:00
//---------------------------------------------------------------
// application layer
//---------------------------------------------------------------
2022-08-14 16:19:40 +00:00
2022-12-22 17:24:43 +00:00
#if defined(OS_WIN64)
#include"win32_app.c"
#include"win32_gl_surface.c"
#elif defined(OS_MACOS)
//NOTE: macos application layer is defined in milepost.m
#else
#error "Unsupported platform"
#endif
//---------------------------------------------------------------
// graphics/ui layer
//---------------------------------------------------------------
#include"graphics.c"
//#include"ui.c"