Files
RedHotRoast-ios/HybridCLRData/LocalIl2CppData-OSXEditor/il2cpp/libil2cpp/os/Win32/Assert.cpp
T

19 lines
466 B
C++
Raw Normal View History

2026-07-17 14:03:00 +08:00
#include "os/Assert.h"
#if IL2CPP_DEBUG
#if IL2CPP_TARGET_WINDOWS || IL2CPP_TARGET_XBOXONE || IL2CPP_TARGET_WINRT || IL2CPP_TARGET_WINDOWS_GAMES
#include <crtdbg.h>
void il2cpp_assert(const char* assertion, const char* file, unsigned int line)
{
if (_CrtDbgReport(_CRT_ASSERT, file, line, "", "%s", assertion) == 1)
{
_CrtDbgBreak();
}
}
#endif // IL2CPP_TARGET_WINDOWS || IL2CPP_TARGET_XBOXONE || IL2CPP_TARGET_WINRT
#endif // IL2CPP_DEBUG