Files
curly.hpp/untests/doctest/doctest.hpp
BlackMATov 8313f8e3f9 Happy New Year 🥳
2022-07-03 22:18:20 +07:00

21 lines
428 B
C++

#pragma once
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wreserved-identifier"
#endif
#include "doctest.h"
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#define STATIC_REQUIRE(...)\
static_assert(__VA_ARGS__, #__VA_ARGS__);\
REQUIRE(__VA_ARGS__);
#define STATIC_REQUIRE_FALSE(...)\
static_assert(!(__VA_ARGS__), "!(" #__VA_ARGS__ ")");\
REQUIRE(!(__VA_ARGS__));