Files
BlitzNext/Runtime/lib/bbsys.hpp
T
Michael Fabian 'Xaymar' Dirks 09be5488e1 runtime/lib: C++ify
2019-01-18 21:26:57 +01:00

19 lines
280 B
C++

#pragma once
#include "basic.hpp"
#include <gxruntime.hpp>
extern bool debug;
extern gxRuntime* gx_runtime;
struct bbEx {
const char* err;
bbEx(const char* e) : err(e)
{
if (e)
gx_runtime->debugError(e);
}
};
#define ThrowRuntimeException(_X_) throw bbEx(_X_);