mirror of
https://github.com/ModOrganizer2/mob.git
synced 2026-07-27 14:07:05 -07:00
split to assert.cpp
comments
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user