 |
Plasma Engine
2.0
|
Loading...
Searching...
No Matches
3#if !defined(__clang__) && (defined(__GNUC__) || defined(__GNUG__))
6# define PL_COMPILER_GCC PL_ON
9# define PL_ALWAYS_INLINE inline
10# define PL_FORCE_INLINE inline
12# define PL_ALIGNMENT_OF(type) PL_COMPILE_TIME_MAX(__alignof(type), PL_ALIGNMENT_MINIMUM)
14# if __has_builtin(__builtin_debugtrap)
15# define PL_DEBUG_BREAK \
17 __builtin_debugtrap(); \
19# elif defined(__i386__) || defined(__x86_64__)
20# define PL_DEBUG_BREAK \
22 __asm__ __volatile__("int3"); \
27# define PL_DEBUG_BREAK \
32# define PL_DEBUG_BREAK \
39# define PL_SOURCE_FUNCTION __PRETTY_FUNCTION__
40# define PL_SOURCE_LINE __LINE__
41# define PL_SOURCE_FILE __FILE__
43# ifdef BUILDSYSTEM_BUILDTYPE_Debug
44# undef PL_COMPILE_FOR_DEBUG
45# define PL_COMPILE_FOR_DEBUG PL_ON
48# define PL_WARNING_PUSH() _Pragma("GCC diagnostic push")
49# define PL_WARNING_POP() _Pragma("GCC diagnostic pop")
50# define PL_WARNING_DISABLE_GCC(_x) _Pragma(PL_PP_STRINGIFY(GCC diagnostic ignored _x))
52# define PL_DECL_EXPORT [[gnu::visibility("default")]]
53# define PL_DECL_IMPORT [[gnu::visibility("default")]]
54# define PL_DECL_EXPORT_FRIEND
55# define PL_DECL_IMPORT_FRIEND
59# define PL_WARNING_DISABLE_GCC(_x)