Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
attributes.h
Go to the documentation of this file.
1 
10 #ifndef ATTRIBUTES_H
11 #define ATTRIBUTES_H
12 
13 #if __GNUC__ >= 3
14 # define __noinline __attribute__ ((noinline))
15 # define __pure __attribute__ ((pure))
16 # define __const __attribute__ ((const))
17 # define __noreturn __attribute__ ((noreturn))
18 # define __malloc __attribute__ ((malloc))
19 # define __must_check __attribute__ ((warn_unused_result))
20 # define __deprecated __attribute__ ((deprecated))
21 # define __used __attribute__ ((used))
22 # define __unused __attribute__ ((unused))
23 # define __packed __attribute__ ((packed))
24 # define __align(x) __attribute__ ((aligned (x)))
25 # define __align_max __attribute__ ((aligned))
26 # define likely(x) __builtin_expect (!!(x), 1)
27 # define unlikely(x) __builtin_expect (!!(x), 0)
28 #else
29 # define __noinline
30 # define __pure
31 # define __const
32 # define __noreturn
33 # define __malloc
34 # define __must_check
35 # define __deprecated
36 # define __used
37 # define __unused
38 # define __packed
39 # define __align(x)
40 # define __align_max
41 # define likely(x) (x)
42 # define unlikely(x) (x)
43 #endif
44 
45 #endif