mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* Ansi colors can now be enabled with the '-ansiclr- flag. * All loggers have been optimized and are all initialized only once at process startup. * New hook for 'Warning()' print function with warning level.
14 lines
406 B
C++
14 lines
406 B
C++
#pragma once
|
|
#ifndef NDEBUG
|
|
# define Assert(condition, message) \
|
|
do { \
|
|
if (! (condition)) { \
|
|
std::cerr << "Assertion `" #condition "` failed in " << __FILE__ \
|
|
<< " line " << __LINE__ << ": " << message << std::endl; \
|
|
std::terminate(); \
|
|
} \
|
|
} while (false)
|
|
#else
|
|
# define Assert(condition, message) do { } while (false)
|
|
#endif
|