galaxy
1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
Pragma.hpp
Go to the documentation of this file.
1
7
8
#ifndef GALAXY_PLATFORM_PRAGMA_HPP_
9
#define GALAXY_PLATFORM_PRAGMA_HPP_
10
14
#define GALAXY_ZLIB_COMPLETE_CHUNK 16384
15
19
#define GALAXY_UNUSED(var) ((void)(var))
20
21
#if defined(_DEBUG) || defined(DEBUG)
25
#define GALAXY_DEBUG_BUILD true
26
#elif defined(_NDEBUG) || defined(NDEBUG)
30
#define GALAXY_DEBUG_BUILD false
31
#endif
32
36
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(_WIN64) || defined(_MSC_VER)
37
#define GALAXY_WIN_PLATFORM
38
#endif
39
43
#if defined(__linux__) || defined(__unix) || defined(_POISX_VERSION) || defined(__GNUC__) || defined(__clang__)
44
#define GALAXY_LINUX_PLATFORM
45
#endif
46
47
#ifdef GALAXY_WIN_PLATFORM
48
#define GALAXY_PLATFORM_PUSH __pragma(warning(push))
49
#define GALAXY_PLATFORM_POP __pragma(warning(pop))
50
#define GALAXY_PLATFORM_WARNING(x) __pragma(warning(disable : x))
51
#elif GALAXY_UNIX_PLATFORM
52
#define GALAXY_PLATFORM_PUSH _Pragma("GCC diagnostic push")
53
#define GALAXY_PLATFORM_POP _Pragma("GCC diagnostic pop")
54
#define GALAXY_DO_PRAGMA(x) _Pragma(#x)
55
#define GALAXY_PLATFORM_WARNING(x) GALAXY_DO_PRAGMA(GCC diagnostic ignored #x)
56
#endif
57
58
#define GALAXY_DISABLE_WARNING_PUSH GALAXY_PLATFORM_PUSH
59
#define GALAXY_DISABLE_WARNING_POP GALAXY_PLATFORM_POP
60
#define GALAXY_DISABLE_WARNING(x) GALAXY_PLATFORM_WARNING(x)
61
62
#endif
galaxy
src
galaxy
platform
Pragma.hpp
Generated on Wed Aug 20 2025 08:06:51 for galaxy by
1.12.0