Commit 7c15c632 authored by Christian Rober's avatar Christian Rober Committed by Yoni Fogel

refs #5086 ignore POD for clang, since it is stricter than GCC and we don't...

refs #5086 ignore POD for clang, since it is stricter than GCC and we don't yet fully support clang.

git-svn-id: file:///svn/toku/tokudb@47053 c7de825b-a66e-492c-adef-691d508d4ae1
parent a5c6f05b
...@@ -65,6 +65,12 @@ extern void (*do_assert_hook)(void); // Set this to a function you want called a ...@@ -65,6 +65,12 @@ extern void (*do_assert_hook)(void); // Set this to a function you want called a
#define WHEN_NOT_GCOV(x) x #define WHEN_NOT_GCOV(x) x
#endif #endif
#if !defined(__clang__)
# define ENSURE_POD(type) static_assert(std::is_pod<type>::value, #type " isn't POD")
#else
# define ENSURE_POD(type) // TEMP, clang is much more strict about POD.
#endif
#define lazy_assert(a) assert(a) // indicates code is incomplete #define lazy_assert(a) assert(a) // indicates code is incomplete
#define lazy_assert_zero(a) assert_zero(a) // indicates code is incomplete #define lazy_assert_zero(a) assert_zero(a) // indicates code is incomplete
#define invariant(a) assert(a) // indicates a code invariant that must be true #define invariant(a) assert(a) // indicates a code invariant that must be true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment