0.9.8.10
|
Go to the documentation of this file.
27 #ifndef HYPERTABLE_COMPAT_C_H
28 #define HYPERTABLE_COMPAT_C_H
39 # define HT_EXTERN_C extern "C"
41 # define HT_EXTERN_C extern
46 # define HT_CDECL __cdecl
51 #define HT_PUBLIC(ret_type) ret_type HT_CDECL
52 #define HT_EXTERN(ret_type) HT_EXTERN_C HT_PUBLIC(ret_type)
55 # define HT_NORETURN __attribute__((__noreturn__))
56 # define HT_FORMAT(x) __attribute__((format x))
57 # define HT_FUNC __PRETTY_FUNCTION__
58 # define HT_COND(x, _prob_) __builtin_expect(x, _prob_)
62 # ifndef __attribute__
63 # define __attribute__(x)
65 # define HT_FUNC __func__
66 # define HT_COND(x, _prob_) (x)
69 #define HT_LIKELY(x) HT_COND(x, 1)
70 #define HT_UNLIKELY(x) HT_COND(x, 0)
73 #ifndef __STDC_LIMIT_MACROS
74 # define __STDC_LIMIT_MACROS