com_create: Abort if pre-create hook fails.
[dss.git] / gcc-compat.h
1 # define __noreturn     __attribute__ ((noreturn))
2 # define __malloc       __attribute__ ((malloc))
3 # define __a_unused     __attribute__ ((unused))
4 /* 
5  * p is the number of the "format string" parameter, and q is 
6  * the number of the first variadic parameter 
7  */
8 # define __printf(p,q) __attribute__ ((format (printf, p, q)))
9 /*
10  * as direct use of __printf(p,q) confuses doxygen, here are two extra macros
11  * for those values p,q that are actually used by paraslash.
12  */
13 #define  __printf_1_2 __printf(1,2)
14 #define  __printf_2_3 __printf(2,3)
15
16 # if __GNUC__ > 3  || (__GNUC__ == 3 && __GNUC_MINOR__ > 3)
17 # define __must_check   __attribute__ ((warn_unused_result))
18 # else
19 # define __must_check   /* no warn_unused_result */
20 # endif
21
22 #define _static_inline_ static inline