Go to the documentation of this file.
28 # define KSI_ATTRIBUTE(x)
30 # define KSI_ATTRIBUTE(x) __attribute__(x)
39 #define KSI_IS_VALID_TREE_LEVEL(level) (((level) <= 0xff) && ((int)(level) >= 0))
44 #ifndef __KSI_NO_DEPRECATE__
45 # if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
46 # define KSI_FN_DEPRECATED(decl, comment) decl __attribute__((deprecated))
47 # elif defined(_WIN32)
48 # define KSI_FN_DEPRECATED(decl, comment) __declspec(deprecated) decl
50 # define KSI_FN_DEPRECATED(decl, comment) decl
53 # define KSI_FN_DEPRECATED(decl, comment) decl;
59 #ifndef __KSI_NO_DEPRECATE__
60 # if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
61 # define KSI_VAR_DEPRECATED(decl, comment) decl __attribute__((deprecated))
64 # define KSI_VAR_DEPRECATED(decl, comment) decl
67 # define KSI_VAR_DEPRECATED(decl, comment) decl
73 #ifndef __KSI_NO_DEPRECATE__
74 # if defined(__GNUC__) && (__GNUC__ >= 6)
75 # define KSI_ENUM_DEPRECATED(decl, comment) decl __attribute__((deprecated))
78 # define KSI_ENUM_DEPRECATED(decl, comment) decl
81 # define KSI_ENUM_DEPRECATED(decl, comment) decl
84 #if defined(_WIN32) && defined(DLL_BUILD) && !(KSI_BUILD)
85 # define KSI_DEFINE_EXTERN(e) __declspec( dllimport ) extern e
87 # define KSI_DEFINE_EXTERN(e) extern e
93 #define KSI_UNUSED(x) KSI_ATTRIBUTE((__unused__)) x