2024-04-18 12:59:11 +00:00
|
|
|
#include "dqn.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// /$$$$$$\ $$\ $$\ $$$$$$$\ $$\
|
|
|
|
// \_$$ _|$$$\ $$$ |$$ __$$\ $$ |
|
|
|
|
// $$ | $$$$\ $$$$ |$$ | $$ |$$ |
|
|
|
|
// $$ | $$\$$\$$ $$ |$$$$$$$ |$$ |
|
|
|
|
// $$ | $$ \$$$ $$ |$$ ____/ $$ |
|
|
|
|
// $$ | $$ |\$ /$$ |$$ | $$ |
|
|
|
|
// $$$$$$\ $$ | \_/ $$ |$$ | $$$$$$$$\
|
|
|
|
// \______|\__| \__|\__| \________|
|
|
|
|
//
|
|
|
|
// Implementation
|
|
|
|
//
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if defined(DQN_WITH_CGEN)
|
|
|
|
#if !defined(DQN_NO_METADESK)
|
|
|
|
DQN_MSVC_WARNING_PUSH
|
|
|
|
DQN_MSVC_WARNING_DISABLE(4505) // warning C4505: '<function>': unreferenced function with internal linkage has been removed
|
2024-08-01 03:34:36 +00:00
|
|
|
|
|
|
|
DQN_GCC_WARNING_PUSH
|
|
|
|
DQN_GCC_WARNING_DISABLE(-Wwrite-strings)
|
|
|
|
DQN_GCC_WARNING_DISABLE(-Wunused-but-set-variable)
|
|
|
|
DQN_GCC_WARNING_DISABLE(-Wsign-compare)
|
|
|
|
DQN_GCC_WARNING_DISABLE(-Wunused-function)
|
|
|
|
DQN_GCC_WARNING_DISABLE(-Wunused-result)
|
|
|
|
|
2024-04-18 12:59:11 +00:00
|
|
|
#include "External/metadesk/md.c"
|
2024-08-01 03:34:36 +00:00
|
|
|
|
|
|
|
DQN_GCC_WARNING_POP
|
2024-04-18 12:59:11 +00:00
|
|
|
DQN_MSVC_WARNING_POP
|
|
|
|
#endif
|
|
|
|
#define DQN_CPP_FILE_IMPLEMENTATION
|
|
|
|
#include "Standalone/dqn_cpp_file.h"
|
|
|
|
#include "dqn_cgen.cpp"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(DQN_WITH_JSON)
|
|
|
|
#include "dqn_json.cpp"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "dqn_base.cpp"
|
|
|
|
#include "dqn_external.cpp"
|
|
|
|
#include "dqn_allocator.cpp"
|
|
|
|
#include "dqn_debug.cpp"
|
|
|
|
#include "dqn_string.cpp"
|
|
|
|
#include "dqn_containers.cpp"
|
|
|
|
#include "dqn_type_info.cpp"
|
2024-08-01 03:34:36 +00:00
|
|
|
#include "dqn_os.cpp"
|
2024-04-18 12:59:11 +00:00
|
|
|
|
|
|
|
#if defined(DQN_PLATFORM_EMSCRIPTEN) || defined(DQN_PLATFORM_POSIX) || defined(DQN_PLATFORM_ARM64)
|
|
|
|
#include "dqn_os_posix.cpp"
|
|
|
|
#elif defined(DQN_PLATFORM_WIN32)
|
|
|
|
#include "dqn_os_win32.cpp"
|
|
|
|
#else
|
|
|
|
#error Please define a platform e.g. 'DQN_PLATFORM_WIN32' to enable the correct implementation for platform APIs
|
|
|
|
#endif
|
|
|
|
|
2024-08-01 03:34:36 +00:00
|
|
|
#include "dqn_tls.cpp"
|
2024-04-18 12:59:11 +00:00
|
|
|
#include "dqn_math.cpp"
|
|
|
|
#include "dqn_hash.cpp"
|
|
|
|
#include "dqn_helpers.cpp"
|
|
|
|
|
|
|
|
#if defined(DQN_WITH_UNIT_TESTS)
|
|
|
|
#include "dqn_unit_tests.cpp"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "dqn_docs.cpp"
|