DSC Engine
Loading...
Searching...
No Matches
error.hpp
1#pragma once
2
4#include "DSCEngine/testmod.hpp"
5
6namespace DSC
7{
8 void fatal_freeze(const char* message, ...);
9
13 template<typename... Args> void fatal(const char* message, Args... args)
14 {
15 DSC::Debug::error(message, args...);
16 DSC::Debug::log("The execution stopped");
17
18 if(!IS_TESTMOD)
19 {
20 fatal_freeze(message, args...);
21 }
22 else
23 {
24 testmod_fatal_raise();
25 testmod_return();
26 }
27 }
28}
send debug messages to the emulator
void error(const char *message,...)
Sends an error message to the emulator.
void log(const char *message,...)
Sends a log message to the emulator.