mirror of
https://github.com/BlackMATov/invoke.hpp.git
synced 2025-12-12 21:46:18 +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__));
|