Lines 53-63
Link Here
|
53 |
|
53 |
|
54 |
#ifndef DEBUG_ASSERT_PURE_FUNCTION |
54 |
#ifndef DEBUG_ASSERT_PURE_FUNCTION |
55 |
#ifdef __GNUC__ |
55 |
#ifdef __GNUC__ |
56 |
#if (__GNUC__ > 8) |
|
|
57 |
#define DEBUG_ASSERT_PURE_FUNCTION [[gnu::pure]] |
58 |
#else |
59 |
#define DEBUG_ASSERT_PURE_FUNCTION __attribute__((pure)) |
56 |
#define DEBUG_ASSERT_PURE_FUNCTION __attribute__((pure)) |
60 |
#endif |
|
|
61 |
#else |
57 |
#else |
62 |
/// Hint to the compiler that a function is pure. |
58 |
/// Hint to the compiler that a function is pure. |
63 |
#define DEBUG_ASSERT_PURE_FUNCTION |
59 |
#define DEBUG_ASSERT_PURE_FUNCTION |