You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
1.2 KiB

#pragma once
#include "utils/log.hpp"
#define UNIMPLEMENTED() \
do { \
::devilution::LogDebug("UNIMPLEMENTED: {} @ {}:{}", __FUNCTION__, __FILE__, __LINE__); \
abort(); \
} while (0)
#define ABORT() \
do { \
::devilution::LogCritical("ABORT: {} @ {}:{}", __FUNCTION__, __FILE__, __LINE__); \
abort(); \
} while (0)
#define ASSERT(x) \
if (!(x)) { \
::devilution::LogCritical("Assertion failed in {}:{}: {}", __FILE__, __LINE__, #x); \
abort(); \
}