mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-01 01:08:01 +03:00
Rename SetErrorMode to SetScriptErrorMode to avoid VS getting confused by some MS function with the same name. Add GetScriptErrorMode.
This commit is contained in:
parent
2981c75827
commit
8d84ee6f3f
2 changed files with 11 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue