mirror of
https://github.com/BlackMATov/curly.hpp.git
synced 2025-12-13 03:29:37 +07:00
21 lines
428 B
C++
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__));
|