Remove assert implementation on non-stdlib builds, as the asserts use stdlib
This commit is contained in:
parent
c871806822
commit
c5bf8591e3
2
deps/ox/src/ox/std/assert.cpp
vendored
2
deps/ox/src/ox/std/assert.cpp
vendored
@ -12,8 +12,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void oxAssert(const char *file, int line, bool pass, const char *msg) {
|
void oxAssert(const char *file, int line, bool pass, const char *msg) {
|
||||||
|
#if defined(OX_USE_STDLIB)
|
||||||
if (!pass) {
|
if (!pass) {
|
||||||
std::cerr << '(' << file << ':' << line << "): " << msg << std::endl;
|
std::cerr << '(' << file << ':' << line << "): " << msg << std::endl;
|
||||||
std::abort();
|
std::abort();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user