feely_pona/feely_pona_unity.h

75 lines
2.6 KiB
C
Raw Permalink Normal View History

2023-09-16 02:21:24 +00:00
// =================================================================================================
// NOTE(doyle): Work-around for clangd to correctly resolve symbols in unity
// builds by providing symbol definition and prototypes by including this
// mega-header in all files and using the "#pragma once" directive to
// avoid multiple defined symbols when compiling the unity build itself.
//
// See: https://www.frogtoss.com/labs/clangd-with-unity-builds.html
#pragma once
// NOTE: DQN =======================================================================================
// NOTE: C-strings declared in a ternary cause global-buffer-overflow in
// MSVC2022.
// stb_sprintf assumes c-string literals are 4 byte aligned which is always
// true, however, reading past the end of a string whose size is not a multiple
// of 4 is UB causing ASAN to complain.
#if defined(_MSC_VER) && !defined(__clang__)
#define STBSP__ASAN __declspec(no_sanitize_address)
#endif
#define DQN_ASAN_POISON 0
#define DQN_ASAN_VET_POISON 1
#define DQN_ONLY_RECT
#define DQN_ONLY_V2
#define DQN_ONLY_V3
#define DQN_ONLY_V4
#define DQN_ONLY_WIN
#define DQN_ONLY_FARRAY
#define DQN_ONLY_PROFILER
#define DQN_ONLY_SLICE
#define DQN_ONLY_LIST
#define DQN_ONLY_VARRAY
2023-09-16 09:47:59 +00:00
#define DQN_ONLY_DSMAP
2023-09-16 02:21:24 +00:00
#define DQN_ONLY_FS
#define _CRT_SECURE_NO_WARNINGS
#define DQN_IMPLEMENTATION
#include "External/tely/External/dqn/dqn.h"
2023-09-16 02:21:24 +00:00
// NOTE: TELY ======================================================================================
2023-10-10 12:00:35 +00:00
DQN_MSVC_WARNING_PUSH
2023-09-16 02:21:24 +00:00
DQN_MSVC_WARNING_DISABLE(4505) // warning C4505: unreferenced function with internal linkage has been removed
#include "External/tely/tely_profile.h"
#include "External/tely/tely_platform_input.h"
#include "External/tely/tely_tools.h"
#include "External/tely/tely_asset.h"
#include "External/tely/tely_colour.h"
#include "External/tely/tely_render.h"
#include "External/tely/tely_audio.h"
#include "External/tely/tely_platform.h"
#include "External/tely/tely_ui.h"
#include "External/tely/tely_rfui.h"
#include "External/tely/tely_tools.cpp"
#include "External/tely/tely_asset.cpp"
#include "External/tely/tely_audio.cpp"
#include "External/tely/tely_render.cpp"
#include "External/tely/tely_platform_input.cpp"
#include "External/tely/tely_ui.cpp"
#include "External/tely/tely_rfui.cpp"
// NOTE: feely_pona ================================================================================
2023-09-25 14:07:39 +00:00
#include "feely_pona.h"
#include "feely_pona_stdlib.h"
2023-09-24 08:16:14 +00:00
#include "feely_pona_entity.h"
2023-09-23 02:33:59 +00:00
#include "feely_pona_game.h"
2023-09-16 02:21:24 +00:00
#include "feely_pona_game.cpp"
2023-09-29 05:11:54 +00:00
#include "feely_pona_entity_create.cpp"
2023-09-24 08:05:28 +00:00
#include "feely_pona_misc.cpp"
2023-09-16 02:33:40 +00:00
#include "feely_pona.cpp"
2023-10-10 12:00:35 +00:00
DQN_MSVC_WARNING_POP