mirror of
https://github.com/BlackMATov/enum.hpp.git
synced 2025-12-13 06:59:45 +07:00
16 lines
626 B
C++
16 lines
626 B
C++
/*******************************************************************************
|
|
* This file is part of the "https://github.com/blackmatov/enum.hpp"
|
|
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
|
* Copyright (C) 2020-2022, by Matvey Cherevko (blackmatov@gmail.com)
|
|
******************************************************************************/
|
|
|
|
#include <doctest/doctest.h>
|
|
|
|
#define STATIC_CHECK(...)\
|
|
static_assert(__VA_ARGS__, #__VA_ARGS__);\
|
|
CHECK(__VA_ARGS__)
|
|
|
|
#define STATIC_CHECK_FALSE(...)\
|
|
static_assert(!(__VA_ARGS__), "!(" #__VA_ARGS__ ")");\
|
|
CHECK(!(__VA_ARGS__))
|