You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
471 B
20 lines
471 B
#ifndef _ATTRS_H
|
|
#define _ATTRS_H
|
|
|
|
#define pure __attribute__((pure))
|
|
#define noglobal __attribute__((const))
|
|
#define noinline __attribute__((noinline))
|
|
#define cold __attribute__((cold))
|
|
|
|
#ifndef DEBUG
|
|
#define _force_inline __attribute__((gnu_inline)) inline extern
|
|
#else
|
|
#define _force_inline __attribute__((gnu_inline)) inline static
|
|
#endif
|
|
|
|
#ifndef __cplusplus // sepples has [[noreturn]]
|
|
#define noreturn __attribute__((noreturn)) void
|
|
#endif
|
|
|
|
#endif /* _ATTRS_H */
|