From 9c8dc099962ab204e37c388c70cd5042a2836f78 Mon Sep 17 00:00:00 2001
From: Gary Talent <gary@drinkingtea.net>
Date: Tue, 15 Dec 2020 23:54:32 -0600
Subject: [PATCH] [ox/std] Fix ox::assertFunc<bool> for GBA

---
 deps/ox/src/ox/std/assert.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/deps/ox/src/ox/std/assert.cpp b/deps/ox/src/ox/std/assert.cpp
index 57f7de06..a4247a0b 100644
--- a/deps/ox/src/ox/std/assert.cpp
+++ b/deps/ox/src/ox/std/assert.cpp
@@ -21,14 +21,16 @@ namespace ox {
 
 template<>
 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 defined(OX_USE_STDLIB)
 		std::cerr << "\033[31;1;1mASSERT FAILURE:\033[0m (" << file << ':' << line << "): " << msg << std::endl;
 		printStackTrace(2);
 		oxTrace("assert").del("") << "Failed assert: " << msg << " (" << file << ":" << line << ")";
 		std::abort();
-	}
+#else
+		panic(file, line, msg);
 #endif
+	}
 }
 
 template<>