From 791c153aabd579f518a9b00613459cba13734797 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Fri, 6 Oct 2023 14:42:03 -0400 Subject: Memory management - ctors and dtors --- src/macros.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/macros.hpp') diff --git a/src/macros.hpp b/src/macros.hpp index 33d942a..02ebb3d 100644 --- a/src/macros.hpp +++ b/src/macros.hpp @@ -8,6 +8,9 @@ #define CAFE_BABE(T) reinterpret_cast(0xCAFEBABE) +#define IS_CONSTRUCTIBLE(T) constexpr(std::is_constructible::value && !std::is_integral::value && !std::is_floating_point::value) +#define IS_DESTRUCTIBLE(T) constexpr(std::is_destructible::value && !std::is_integral::value && !std::is_floating_point::value) + #define TypeSafeInt2_H(TypeName, Type, Max, TypeName_T, TypeName_MAX, TypeName_T_MAX)\ using TypeName_T = Type; \ enum class TypeName : TypeName_T; \ -- cgit v1.2.3