Rename SetErrorMode to SetScriptErrorMode to avoid VS getting confused by some MS function with the same name. Add GetScriptErrorMode.

This commit is contained in:
hispidence 2021-08-21 00:13:44 +01:00
parent f7c98f9ccc
commit 1621a00b3a
2 changed files with 11 additions and 2 deletions

View file

@ -9,8 +9,10 @@ enum class ERROR_MODE
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);
void SetErrorMode(ERROR_MODE mode);