lib: Make BUG_ON() use fp_err()
So that when we change fp_err() to an assertion, BUG_ON() is changed as well.
This commit is contained in:
parent
de5b4e7dcb
commit
fc66919e1f
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@
|
||||||
if (condition) { \
|
if (condition) { \
|
||||||
char *s; \
|
char *s; \
|
||||||
s = g_strconcat ("BUG: (", #condition, ")", NULL); \
|
s = g_strconcat ("BUG: (", #condition, ")", NULL); \
|
||||||
g_warning ("%s: %s() %s:%d", s, G_STRFUNC, __FILE__, __LINE__); \
|
fp_err ("%s: %s() %s:%d", s, G_STRFUNC, __FILE__, __LINE__); \
|
||||||
g_free (s); \
|
g_free (s); \
|
||||||
} G_STMT_END
|
} G_STMT_END
|
||||||
#define BUG() BUG_ON(1)
|
#define BUG() BUG_ON(1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue