Browse Source
The change in include order necessitated a couple of other minor cleanups, one in stubs.h and one in sdl2_to_1_2_backports.hpull/2045/head
9 changed files with 31 additions and 38 deletions
@ -1,8 +1,12 @@
|
||||
#pragma once |
||||
|
||||
#include <cstdint> |
||||
|
||||
#include "engine.h" |
||||
|
||||
namespace devilution { |
||||
|
||||
extern const unsigned char btnData[]; |
||||
extern const unsigned char popupData[]; |
||||
extern const std::uint8_t btnData[]; |
||||
extern const std::uint8_t popupData[]; |
||||
|
||||
} // namespace devilution
|
||||
|
||||
@ -1,23 +1,21 @@
|
||||
#pragma once |
||||
|
||||
#include <cassert> |
||||
#include <cstdio> |
||||
#include <cstdlib> |
||||
#include "utils/log.hpp" |
||||
|
||||
#define UNIMPLEMENTED() \ |
||||
do { \
|
||||
SDL_Log("UNIMPLEMENTED: %s @ %s:%i", __FUNCTION__, __FILE__, __LINE__); \
|
||||
abort(); \
|
||||
#define UNIMPLEMENTED() \ |
||||
do { \
|
||||
::devilution::LogDebug("UNIMPLEMENTED: {} @ {}:{}", __FUNCTION__, __FILE__, __LINE__); \
|
||||
abort(); \
|
||||
} while (0) |
||||
|
||||
#define ABORT() \ |
||||
do { \
|
||||
SDL_Log("ABORT: %s @ %s:%i", __FUNCTION__, __FILE__, __LINE__); \
|
||||
abort(); \
|
||||
#define ABORT() \ |
||||
do { \
|
||||
::devilution::LogCritical("ABORT: {} @ {}:{}", __FUNCTION__, __FILE__, __LINE__); \
|
||||
abort(); \
|
||||
} while (0) |
||||
|
||||
#define ASSERT(x) \ |
||||
if (!(x)) { \
|
||||
SDL_Log("Assertion failed in %s:%i: %s", __FILE__, __LINE__, #x); \
|
||||
abort(); \
|
||||
#define ASSERT(x) \ |
||||
if (!(x)) { \
|
||||
::devilution::LogCritical("Assertion failed in {}:{}: {}", __FILE__, __LINE__, #x); \
|
||||
abort(); \
|
||||
} |
||||
|
||||
Loading…
Reference in new issue