mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
16 lines
530 B
C
16 lines
530 B
C
#ifndef __LABWC_BUG_ON_H
|
|
#define __LABWC_BUG_ON_H
|
|
|
|
/*
|
|
* BUG_ON - assert() without abort()
|
|
* @condition - expression to be evaluated
|
|
*/
|
|
#define BUG_ON(condition) \
|
|
do { \
|
|
if ((condition) != 0) { \
|
|
fprintf(stderr, "Badness in %s() at %s:%d\n", \
|
|
__func__, __FILE__, __LINE__); \
|
|
} \
|
|
} while (0)
|
|
|
|
#endif /* __LABWC_BUG_ON_H */
|