diff options
author | Damjan Marion <damarion@cisco.com> | 2016-11-07 14:57:50 +0100 |
---|---|---|
committer | Chris Luke <chris_luke@comcast.com> | 2016-11-07 14:53:29 +0000 |
commit | cf4789498d077a2733055b0144c5a4ea2e33d95f (patch) | |
tree | 934847846fa334ea0454953e3d8dbed44bb7f4f9 /vppinfra | |
parent | 109cd5026122c4174ef4b2c8a560d24d6eb07626 (diff) |
use STATIC_ASSERT macro instead of calling _Static_assert directly
Change-Id: Iccae655334b6219d22c325108b0e7f37d1dd68cf
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vppinfra')
-rw-r--r-- | vppinfra/vppinfra/error_bootstrap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vppinfra/vppinfra/error_bootstrap.h b/vppinfra/vppinfra/error_bootstrap.h index ad600621eae..b03ec88049a 100644 --- a/vppinfra/vppinfra/error_bootstrap.h +++ b/vppinfra/vppinfra/error_bootstrap.h @@ -79,7 +79,11 @@ do { \ } \ } while (0) +#if defined(__clang__) +#define STATIC_ASSERT(truth,...) +#else #define STATIC_ASSERT(truth,...) _Static_assert(truth, __VA_ARGS__) +#endif /* Assert without allocating memory. */ #define ASSERT_AND_PANIC(truth) \ |