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 2981c75827
commit 8d84ee6f3f
2 changed files with 11 additions and 2 deletions

View file

@ -34,7 +34,14 @@ bool ScriptAssert(bool cond, std::string const& msg, std::optional<ERROR_MODE> f
return cond;
}
void SetErrorMode(ERROR_MODE mode)
void SetScriptErrorMode(ERROR_MODE mode)
{
ScriptErrorMode = mode;
}
ERROR_MODE GetScriptErrorMode()
{
return ScriptErrorMode;
}