mirror of
https://github.com/Mercantec-GHC/h5-projekt-mst.git
synced 2026-08-27 05:37:39 +02:00
19 lines
984 B
C++
19 lines
984 B
C++
#pragma once
|
|
|
|
#include <cstdlib>
|
|
#include <format>
|
|
#include <iostream>
|
|
|
|
#define ASSERT_EQ(EXPR, VALUE) \
|
|
do { \
|
|
if ((EXPR) != (VALUE)) { \
|
|
std::cerr << std::format( \
|
|
"ASSERTION FAILED: Expected '{}' ({}) to be '{}' ({})\n", \
|
|
#EXPR, \
|
|
(EXPR), \
|
|
#VALUE, \
|
|
(VALUE)); \
|
|
std::exit(1); \
|
|
} \
|
|
} while (false);
|