SDEngine
Game Engine
Loading...
Searching...
No Matches
base.hpp File Reference
#include <spdlog/spdlog.h>
#include "SD/core/logging.hpp"
+ Include dependency graph for base.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sd
 

Macros

#define ASSERT_ALWAYS(x)
 
#define ASSERT(x)   ASSERT_ALWAYS(x)
 
#define INVALID_PATH   ASSERT(!"Invalid Path!")
 
#define NOT_IMPLEMENTED   ASSERT(!"Not Implemented!")
 
#define NO_OP   ((void)0)
 

Functions

void sd::engine_abort (const std::string &message)
 
void sd::engine_abort ()
 

Macro Definition Documentation

◆ ASSERT

#define ASSERT (   x)    ASSERT_ALWAYS(x)

◆ ASSERT_ALWAYS

#define ASSERT_ALWAYS (   x)
Value:
do { \
if (!(x)) { \
spdlog::critical("ASSERT FAILED: {} at {}:{}", #x, __FILE__, __LINE__); \
TRAP(); \
} \
} while (0)
constexpr T g_type_max
Definition types.hpp:21

◆ INVALID_PATH

#define INVALID_PATH   ASSERT(!"Invalid Path!")

◆ NO_OP

#define NO_OP   ((void)0)

◆ NOT_IMPLEMENTED

#define NOT_IMPLEMENTED   ASSERT(!"Not Implemented!")