include/: refactor header files more

This commit is contained in:
Johan Malm 2020-08-03 20:56:38 +01:00
parent 53266a0d5a
commit 4d1363dcae
32 changed files with 130 additions and 78 deletions

View file

@ -1,6 +1,10 @@
#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) { \
@ -9,5 +13,4 @@
} \
} while (0)
#endif /* __LABWC_BUT_ON_H */
#endif /* __LABWC_BUG_ON_H */