/* * This file is part of the DXX-Rebirth project . * It is copyright by its individual contributors, as recorded in the * project's Git history. See COPYING.txt at the top level for license * terms and a link to the Git history. */ #pragma once #include #define DEFINE_ASSERT_HELPER_CLASS(N,OP,STR) \ template \ class N : public std::integral_constant \ { \ static_assert(L OP R, STR); \ } DEFINE_ASSERT_HELPER_CLASS(assert_equal, ==, "values must be equal"); #define assert_equal(L,R,S) static_assert((assert_equal::value), S)