Skip to content

Commit 9a9816a

Browse files
committed
cleanup dbg assert a bit
1 parent 4a9f0e9 commit 9a9816a

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

src/twbl/teeworlds/base/dbg.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,3 @@ void dbg_assert_imp(const char *filename, int line, bool test, const char *msg)
4444
dbg_break();
4545
}
4646
}
47-
48-
#define dbg_assert(test, msg) dbg_assert_imp(__FILE__, __LINE__, test, msg)
49-
void dbg_assert_imp(const char *filename, int line, bool test, const char *msg);

src/twbl/teeworlds/base/dbg.h

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,14 @@
3030
#define GNUC_ATTRIBUTE(x)
3131
#endif
3232

33+
#define dbg_assert(test, msg) dbg_assert_imp(__FILE__, __LINE__, test, msg)
34+
3335
void dbg_msg(const char *sys, const char *fmt, ...)
3436
GNUC_ATTRIBUTE((format(printf, 2, 3)));
3537

3638
void dbg_break();
3739
void dbg_assert_imp(const char *filename, int line, bool test, const char *msg);
3840

39-
void dbg_assert(int test, const char *msg);
40-
#define dbg_assert(test, msg) dbg_assert_imp(__FILE__, __LINE__, test, msg)
41-
42-
#define dbg_assert(test, msg) dbg_assert_imp(__FILE__, __LINE__, test, msg)
43-
void dbg_assert_imp(const char *filename, int line, bool test, const char *msg);
44-
45-
#if defined(CONF_FAMILY_WINDOWS)
46-
std::wstring windows_utf8_to_wide(const char *str);
47-
#endif
4841

4942
#endif // __has_include(<base/system.h>)
5043
#endif // TWBL_SRC_TWBL_TEEWORLDS_BASE_DBG_H

0 commit comments

Comments
 (0)