split to assert.cpp

comments
This commit is contained in:
isanae
2020-11-09 03:28:49 -05:00
parent e78976b03c
commit 955cfd2ada
13 changed files with 337 additions and 121 deletions
-23
View File
@@ -9,29 +9,6 @@
namespace mob
{
void mob_assertion_failed(
const char* message,
const char* exp, const wchar_t* file, int line, const char* func)
{
if (message)
{
gcx().error(context::generic,
"assertion failed: {}:{} {}: {} ({})",
std::wstring(file), line, func, message, exp);
}
else
{
gcx().error(context::generic,
"assertion failed: {}:{} {}: '{}'",
std::wstring(file), line, func, exp);
}
if (IsDebuggerPresent())
DebugBreak();
}
url make_prebuilt_url(const std::string& filename)
{
return