mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
s/BUG_ON/assert/
This commit is contained in:
parent
96e05057a3
commit
581f4ea0c3
8 changed files with 13 additions and 26 deletions
|
|
@ -1,16 +0,0 @@
|
|||
#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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue