Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
Assert.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <fmt/core.h>
4#include <exception>
5#include <iostream>
6
7#define SHKYERA_ASSERT(predicate, ...) \
8 if (!(predicate)) { \
9 std::cerr << "Assert Failed: " << __FILE__ << ":" << __LINE__ << " due to: " << #predicate \
10 << ", with message: " << fmt::format(__VA_ARGS__) << std::endl; \
11 std::terminate(); \
12 }