mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-01 09:18:00 +03:00
16 lines
292 B
C++
16 lines
292 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <optional>
|
|
|
|
enum class ERROR_MODE
|
|
{
|
|
SILENT,
|
|
WARN,
|
|
TERMINATE
|
|
};
|
|
void ScriptWarn(std::string const& msg);
|
|
|
|
bool ScriptAssert(bool cond, std::string const& msg, std::optional<ERROR_MODE> forceMode = std::nullopt);
|
|
|
|
void SetErrorMode(ERROR_MODE mode);
|