FuncDoodle
Loading...
Searching...
No Matches
Macro.h File Reference
#include <iostream>

Go to the source code of this file.

Macros

#define ASSERT(x)
#define ASSERT_EQ(x, y)

Macro Definition Documentation

◆ ASSERT

#define ASSERT ( x)
Value:
do { \
if (x) { \
std::cout << "Test for: x:\033[34m pass\033[0m" << std::endl; \
} else { \
std::cout << "Test for: x:\033[31m fail\033[0m" << std::endl; \
} \
} while (0)

◆ ASSERT_EQ

#define ASSERT_EQ ( x,
y )
Value:
do { \
if (x == y) { \
std::cout << "Test for: x == y:\033[34m pass\033[0m" << std::endl; \
} else { \
std::cout << "Test for: x == y:\033[31m fail\033[0m" << std::endl; \
} \
} while (0)