Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
Assert.hpp File Reference
#include <fmt/core.h>
#include <exception>
#include <iostream>
Include dependency graph for Assert.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SHKYERA_ASSERT(predicate, ...)
 

Macro Definition Documentation

◆ SHKYERA_ASSERT

#define SHKYERA_ASSERT (   predicate,
  ... 
)
Value:
if (!(predicate)) { \
std::cerr << "Assert Failed: " << __FILE__ << ":" << __LINE__ << " due to: " << #predicate \
<< ", with message: " << fmt::format(__VA_ARGS__) << std::endl; \
std::terminate(); \
}