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.

22 lines
1.2 KiB

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