Make dbg_assert take a boolean

This commit is contained in:
heinrich5991 2023-12-04 02:54:38 +01:00
parent 0ffab44dea
commit dc6893ef28
2 changed files with 2 additions and 2 deletions

View file

@ -182,7 +182,7 @@ bool dbg_assert_has_failed()
return dbg_assert_failing.load(std::memory_order_acquire);
}
void dbg_assert_imp(const char *filename, int line, int test, const char *msg)
void dbg_assert_imp(const char *filename, int line, bool test, const char *msg)
{
if(!test)
{

View file

@ -73,7 +73,7 @@
* @see dbg_break
*/
#define dbg_assert(test, msg) dbg_assert_imp(__FILE__, __LINE__, test, msg)
void dbg_assert_imp(const char *filename, int line, int test, const char *msg);
void dbg_assert_imp(const char *filename, int line, bool test, const char *msg);
#ifdef __clang_analyzer__
#include <cassert>