Loading...
Searching...
No Matches
13#include "DebugServer2/Base.h"
15#if defined(COMPILER_GCC) || defined(COMPILER_CLANG)
16#if defined(PLATFORM_MINGW)
20#define DS2_ATTRIBUTE_PRINTF(FORMAT, START) \
21 __attribute__((__format__(__MINGW_PRINTF_FORMAT, FORMAT, START)))
23#define DS2_ATTRIBUTE_PRINTF(FORMAT, START) \
24 __attribute__((__format__(printf, FORMAT, START)))
27#define DS2_ATTRIBUTE_PRINTF(FORMAT, START)
30#if defined(COMPILER_MSVC)
31#define DS2_ATTRIBUTE_PACKED "DS2_ATTRIBUTE_PACKED not implemented on MSVC"
32#elif defined(COMPILER_GCC) || defined(COMPILER_CLANG)
33#define DS2_ATTRIBUTE_PACKED __attribute__((__packed__))
36#if defined(COMPILER_MSVC)
37#define DS2_ATTRIBUTE_ALIGNED "DS2_ATTRIBUTE_ALIGNED not implemented on MSVC"
38#elif defined(COMPILER_GCC) || defined(COMPILER_CLANG)
39#define DS2_ATTRIBUTE_ALIGNED(SIZE) __attribute__((__aligned__(SIZE)))
42#if defined(COMPILER_MSVC)
43#define DS2_UNREACHABLE() __assume(0)
44#elif defined(COMPILER_GCC) || defined(COMPILER_CLANG)
45#define DS2_UNREACHABLE() __builtin_unreachable()
48#define DS2_UNREACHABLE() abort()