Loading...
Searching...
No Matches
25#ifndef TGUI_CONFIG_HPP
26#define TGUI_CONFIG_HPP
32 #define TGUI_SYSTEM_WINDOWS
33#elif defined(__APPLE__) && defined(__MACH__)
34 #include "TargetConditionals.h"
35 #if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
36 #define TGUI_SYSTEM_IOS
38 #define TGUI_SYSTEM_MACOS
40#elif defined(__unix__)
41 #if defined(__ANDROID__)
42 #define TGUI_SYSTEM_ANDROID
44 #define TGUI_SYSTEM_LINUX
49#if !defined(TGUI_DYNAMIC) && !defined(TGUI_STATIC)
56 #ifdef TGUI_SYSTEM_WINDOWS
59 #define TGUI_API __declspec(dllexport)
61 #define TGUI_API __declspec(dllimport)
66 #pragma warning(disable: 4251)
69 #define TGUI_API __attribute__ ((__visibility__ ("default")))
77#define TGUI_USE_GLES 0
80#define TGUI_HAS_BACKEND_SFML 1
81#define TGUI_HAS_BACKEND_SDL 0
86#define TGUI_COMPILED_WITH_CPP_VER 17
89#if TGUI_COMPILED_WITH_CPP_VER >= 20
97#if TGUI_COMPILED_WITH_CPP_VER >= 17
98 #if defined(__clang_major__) && (__clang_major__ >= 9) \
99 || defined(__GNUC__) && (__GNUC__ >= 9) \
100 || defined(_MSC_VER) && (_MSC_VER >= 1914)
101 #define TGUI_USE_STD_FILESYSTEM
110#if defined(__cpp_constexpr) && (__cpp_constexpr >= 201304L)
111 #define TGUI_CONSTEXPR constexpr
113 #define TGUI_CONSTEXPR inline
116#if __cplusplus >= 201703L
117 #define TGUI_EMPLACE_BACK(object, vector) auto& object = vector.emplace_back();
119 #define TGUI_EMPLACE_BACK(object, vector) vector.emplace_back(); auto& object = vector.back();
122#ifndef TGUI_NO_DEPRECATED_WARNINGS
123 #define TGUI_DEPRECATED(msg) [[deprecated(msg)]]
125 #define TGUI_DEPRECATED(msg)
129 #define TGUI_IGNORE_DEPRECATED_WARNINGS_START \
130 _Pragma("GCC diagnostic push") \
131 _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
133 #define TGUI_IGNORE_DEPRECATED_WARNINGS_END _Pragma("GCC diagnostic pop")
134#elif defined (_MSC_VER) && (_MSC_VER >= 1927)
135 #define TGUI_IGNORE_DEPRECATED_WARNINGS_START \
136 _Pragma("warning(push)") \
137 _Pragma("warning(disable: 4996)")
139 #define TGUI_IGNORE_DEPRECATED_WARNINGS_END _Pragma("warning(pop)")
140#elif defined (_MSC_VER)
141 #define TGUI_IGNORE_DEPRECATED_WARNINGS_START \
142 __pragma(warning(push)) \
143 __pragma(warning(disable: 4996))
145 #define TGUI_IGNORE_DEPRECATED_WARNINGS_END __pragma(warning(pop))
148#if !defined(NDEBUG) && !defined(TGUI_NO_RUNTIME_WARNINGS)
150 #define TGUI_PRINT_WARNING(msg) { std::cerr << "TGUI warning: " << msg << "\n"; }
152 #define TGUI_PRINT_WARNING(msg)
155#if !defined(NDEBUG) && !defined(TGUI_DISABLE_ASSERTS)
158 #define TGUI_ASSERT(condition, msg) { if (!(condition)) { std::cerr << "TGUI assertion: " << msg << "\n"; assert(condition); } }
160 #define TGUI_ASSERT(condition, msg)
164#if __cplusplus > 201703L
165 #define TGUI_LAMBDA_CAPTURE_EQ_THIS [=,this]
167 #define TGUI_LAMBDA_CAPTURE_EQ_THIS [=]
172#define TGUI_VERSION_MAJOR 0
173#define TGUI_VERSION_MINOR 9
174#define TGUI_VERSION_PATCH 5