diff options
| -rw-r--r-- | src/macros.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/macros.hpp b/src/macros.hpp index aaf5590..5fc7f3b 100644 --- a/src/macros.hpp +++ b/src/macros.hpp @@ -8,6 +8,8 @@ #define CAFE_BABE(T) reinterpret_cast<T *>(0xCAFEBABE) +#define NULL_CHAR_ARR(v, len) char v[len]; v[0] = '\0'; v[len-1] = '\0'; + #define IS_CONSTRUCTIBLE(T) constexpr(std::is_default_constructible<T>::value && !std::is_integral<T>::value && !std::is_floating_point<T>::value) #define IS_DESTRUCTIBLE(T) constexpr(std::is_destructible<T>::value && !std::is_integral<T>::value && !std::is_floating_point<T>::value && !std::is_array<T>::value) |
