foc: print line numbers in decimal on assert
This commit is contained in:
parent
0d803266ea
commit
42739de9fd
|
@ -22,13 +22,13 @@ namespace Fiasco {
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
#define ASSERT(e, s) \
|
#define ASSERT(e, s) \
|
||||||
do { if (!(e)) { \
|
do { if (!(e)) { \
|
||||||
Fiasco::outstring(ESC_ERR s ESC_END "\n"); \
|
Fiasco::outstring(ESC_ERR s ESC_END "\n"); \
|
||||||
Fiasco::outstring(__FILE__ ":"); \
|
Fiasco::outstring(__FILE__ ":"); \
|
||||||
Fiasco::outhex32((int)__LINE__); \
|
Fiasco::outdec(__LINE__); \
|
||||||
Fiasco::outstring("\n"); \
|
Fiasco::outstring("\n"); \
|
||||||
enter_kdebug("ASSERT"); \
|
enter_kdebug("ASSERT"); \
|
||||||
} \
|
} \
|
||||||
} while(0)
|
} while(0)
|
||||||
#else
|
#else
|
||||||
#define ASSERT(e, s) do { } while (0)
|
#define ASSERT(e, s) do { } while (0)
|
||||||
|
|
Loading…
Reference in New Issue