mirror of
https://github.com/BlackMATov/defer.hpp.git
synced 2025-12-13 07:25:39 +07:00
12 lines
262 B
C++
12 lines
262 B
C++
#pragma once
|
|
|
|
#include "doctest.h"
|
|
|
|
#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__));
|