kdemacros.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _KDE_MACROS_H_
00021 #define _KDE_MACROS_H_
00022
00037 #if __GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 > 2)
00038 #define KDE_NO_EXPORT __attribute__ ((visibility("hidden")))
00039 #define KDE_EXPORT __attribute__ ((visibility("default")))
00040 #else
00041 #define KDE_NO_EXPORT
00042 #define KDE_EXPORT
00043 #endif
00044
00049 #define KDE_Q_EXPORT_PLUGIN(PLUGIN) \
00050 Q_EXTERN_C KDE_EXPORT const char* qt_ucm_query_verification_data(); \
00051 Q_EXTERN_C KDE_EXPORT QUnknownInterface* ucm_instantiate(); \
00052 Q_EXPORT_PLUGIN(PLUGIN)
00053
00059 #ifdef __GNUC__
00060 #define KDE_PACKED __attribute__((__packed__))
00061 #else
00062 #define KDE_PACKED
00063 #endif
00064
00115 #ifndef KDE_DEPRECATED
00116 #if __GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2)
00117 # define KDE_DEPRECATED __attribute__ ((deprecated))
00118 #else
00119 # define KDE_DEPRECATED
00120 #endif
00121 #endif
00122
00148 #if __GNUC__ - 0 >= 3
00149 # define KDE_ISLIKELY( x ) __builtin_expect(!!(x),1)
00150 # define KDE_ISUNLIKELY( x ) __builtin_expect(!!(x),0)
00151 #else
00152 # define KDE_ISLIKELY( x ) ( x )
00153 # define KDE_ISUNLIKELY( x ) ( x )
00154 #endif
00155
00156 #endif // _KDE_MACROS_H_
This file is part of the documentation for kdecore Library Version 3.3.2.