|
|
@@ -3,54 +3,61 @@
|
|
|
|
|
|
|
|
|
#ifndef ENTT_NOEXCEPT
|
|
|
-#define ENTT_NOEXCEPT noexcept
|
|
|
-#endif // ENTT_NOEXCEPT
|
|
|
+# define ENTT_NOEXCEPT noexcept
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
#ifndef ENTT_HS_SUFFIX
|
|
|
-#define ENTT_HS_SUFFIX _hs
|
|
|
-#endif // ENTT_HS_SUFFIX
|
|
|
+# define ENTT_HS_SUFFIX _hs
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
#ifndef ENTT_HWS_SUFFIX
|
|
|
-#define ENTT_HWS_SUFFIX _hws
|
|
|
-#endif // ENTT_HWS_SUFFIX
|
|
|
+# define ENTT_HWS_SUFFIX _hws
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
#ifndef ENTT_USE_ATOMIC
|
|
|
-#define ENTT_MAYBE_ATOMIC(Type) Type
|
|
|
-#else // ENTT_USE_ATOMIC
|
|
|
-#include <atomic>
|
|
|
-#define ENTT_MAYBE_ATOMIC(Type) std::atomic<Type>
|
|
|
-#endif // ENTT_USE_ATOMIC
|
|
|
-
|
|
|
-
|
|
|
-#ifndef ENTT_DISABLE_ETO
|
|
|
-#include <type_traits>
|
|
|
-#define ENTT_ENABLE_ETO(Type) std::is_empty_v<Type>
|
|
|
-#else // ENTT_DISABLE_ETO
|
|
|
-// sfinae-friendly definition
|
|
|
-#define ENTT_ENABLE_ETO(Type) (false && std::is_empty_v<Type>)
|
|
|
-#endif // ENTT_DISABLE_ETO
|
|
|
+# define ENTT_MAYBE_ATOMIC(Type) Type
|
|
|
+#else
|
|
|
+# include <atomic>
|
|
|
+# define ENTT_MAYBE_ATOMIC(Type) std::atomic<Type>
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
#ifndef ENTT_ID_TYPE
|
|
|
-#include <cstdint>
|
|
|
-#define ENTT_ID_TYPE std::uint32_t
|
|
|
-#endif // ENTT_ID_TYPE
|
|
|
+# include <cstdint>
|
|
|
+# define ENTT_ID_TYPE std::uint32_t
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
#ifndef ENTT_PAGE_SIZE
|
|
|
-#define ENTT_PAGE_SIZE 32768
|
|
|
-#endif // ENTT_PAGE_SIZE
|
|
|
+# define ENTT_PAGE_SIZE 32768
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
#ifndef ENTT_DISABLE_ASSERT
|
|
|
-#include <cassert>
|
|
|
-#define ENTT_ASSERT(condition) assert(condition)
|
|
|
-#else // ENTT_DISABLE_ASSERT
|
|
|
-#define ENTT_ASSERT(...) ((void)0)
|
|
|
-#endif // ENTT_DISABLE_ASSERT
|
|
|
+# include <cassert>
|
|
|
+# define ENTT_ASSERT(condition) assert(condition)
|
|
|
+#else
|
|
|
+# define ENTT_ASSERT(...) ((void)0)
|
|
|
+#endif
|
|
|
+
|
|
|
+
|
|
|
+#ifndef ENTT_DISABLE_ETO
|
|
|
+# include <type_traits>
|
|
|
+# define ENTT_ENABLE_ETO(Type) std::is_empty_v<Type>
|
|
|
+#else
|
|
|
+# // sfinae-friendly definition
|
|
|
+# define ENTT_ENABLE_ETO(Type) (false && std::is_empty_v<Type>)
|
|
|
+#endif
|
|
|
+
|
|
|
+
|
|
|
+#if defined _MSC_VER
|
|
|
+# define ENTT_PRETTY_FUNCTION __FUNCSIG__
|
|
|
+#elif defined __GNUC__
|
|
|
+# define ENTT_PRETTY_FUNCTION __PRETTY_FUNCTION__
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
-#endif // ENTT_CONFIG_CONFIG_H
|
|
|
+#endif
|