|
@ -29,6 +29,7 @@ |
|
|
#define IM_ASSERT(_EXPR) assert(_EXPR) |
|
|
#define IM_ASSERT(_EXPR) assert(_EXPR) |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
// Helpers
|
|
|
// Some compilers support applying printf-style warnings to user functions.
|
|
|
// Some compilers support applying printf-style warnings to user functions.
|
|
|
#if defined(__clang__) || defined(__GNUC__) |
|
|
#if defined(__clang__) || defined(__GNUC__) |
|
|
#define IM_FMTARGS(FMT) __attribute__((format(printf, FMT, FMT+1))) |
|
|
#define IM_FMTARGS(FMT) __attribute__((format(printf, FMT, FMT+1))) |
|
@ -37,6 +38,7 @@ |
|
|
#define IM_FMTARGS(FMT) |
|
|
#define IM_FMTARGS(FMT) |
|
|
#define IM_FMTLIST(FMT) |
|
|
#define IM_FMTLIST(FMT) |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR)/sizeof(*_ARR))) |
|
|
|
|
|
|
|
|
#if defined(__clang__) |
|
|
#if defined(__clang__) |
|
|
#pragma clang diagnostic push |
|
|
#pragma clang diagnostic push |
|
|