dropshell/source/src/utils/assert.hpp
Your Name 462d215d5c
Some checks failed
Dropshell Test / Build_and_Test (push) Has been cancelled
Big refactor
2025-05-23 22:06:37 +12:00

14 lines
254 B
C++

#ifndef ASSERT_HPP
#define ASSERT_HPP
#include "output.hpp"
#define ASSERT(condition, message) \
if (!(condition)) { \
dropshell::error << "Assertion failed: " << message << std::endl; \
std::exit(1); \
}
#endif // ASSERT_HPP