[ox/std] Fix ox::assertFunc<bool> for GBA
This commit is contained in:
parent
c038109806
commit
9c8dc09996
6
deps/ox/src/ox/std/assert.cpp
vendored
6
deps/ox/src/ox/std/assert.cpp
vendored
@ -21,14 +21,16 @@ namespace ox {
|
|||||||
|
|
||||||
template<>
|
template<>
|
||||||
void assertFunc<bool>([[maybe_unused]]const char *file, [[maybe_unused]]int line, [[maybe_unused]]bool pass, [[maybe_unused]]const char *msg) {
|
void assertFunc<bool>([[maybe_unused]]const char *file, [[maybe_unused]]int line, [[maybe_unused]]bool pass, [[maybe_unused]]const char *msg) {
|
||||||
#if defined(OX_USE_STDLIB)
|
|
||||||
if (!pass) {
|
if (!pass) {
|
||||||
|
#if defined(OX_USE_STDLIB)
|
||||||
std::cerr << "\033[31;1;1mASSERT FAILURE:\033[0m (" << file << ':' << line << "): " << msg << std::endl;
|
std::cerr << "\033[31;1;1mASSERT FAILURE:\033[0m (" << file << ':' << line << "): " << msg << std::endl;
|
||||||
printStackTrace(2);
|
printStackTrace(2);
|
||||||
oxTrace("assert").del("") << "Failed assert: " << msg << " (" << file << ":" << line << ")";
|
oxTrace("assert").del("") << "Failed assert: " << msg << " (" << file << ":" << line << ")";
|
||||||
std::abort();
|
std::abort();
|
||||||
}
|
#else
|
||||||
|
panic(file, line, msg);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user