mirror of
https://github.com/BlackMATov/enum.hpp.git
synced 2025-12-13 06:59:45 +07:00
15 lines
321 B
C++
15 lines
321 B
C++
#pragma once
|
|
|
|
#include "doctest.h"
|
|
|
|
// https://github.com/onqtam/doctest/issues/126
|
|
#include <iostream>
|
|
|
|
#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__))
|