girara
macros.h
Go to the documentation of this file.
00001 /* See LICENSE file for license and copyright information */
00002 
00003 #ifndef GIRARA_MACROS_H
00004 #define GIRARA_MACROS_H
00005 
00006 #ifndef GIRARA_PRINTF
00007 # if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
00008 #  define GIRARA_PRINTF(format_idx, arg_idx) \
00009     __attribute__((__format__ (__printf__, format_idx, arg_idx)))
00010 # else
00011 #  define GIRARA_PRINTF(format_idx, arg_idx)
00012 # endif
00013 #endif
00014 
00015 #ifndef GIRARA_UNUSED
00016 # if defined(__GNUC__)
00017 #  define GIRARA_UNUSED(x) UNUSED_ ## x __attribute__((unused))
00018 # elif defined(__LCLINT__)
00019 #  define GIRARA_UNUSED(x) /*@unused@*/ x
00020 # else
00021 #  define GIRARA_UNUSED(x) x
00022 # endif
00023 #endif
00024 
00025 #ifndef GIRARA_HIDDEN
00026 # if defined(__GNUC__) && (__GNUC__ >= 4)
00027 #  define GIRARA_HIDDEN __attribute__((visibility("hidden")))
00028 # else
00029 #  define GIRARA_HIDDEN
00030 # endif
00031 #endif
00032 
00033 #ifndef GIRARA_DEPRECATED
00034 # if defined(__GNUC__)
00035 #  define GIRARA_DEPRECATED(x) x __attribute__((deprecated))
00036 # else
00037 #  define GIRARA_DEPRECATED(x) x
00038 # endif
00039 #endif
00040 
00041 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines