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