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.
|
|
|
#ifndef _ATTRS_H
|
|
|
|
#define _ATTRS_H
|
|
|
|
|
|
|
|
#define pure __attribute__((pure))
|
|
|
|
#define noglobal __attribute__((const))
|
|
|
|
#define noinline __attribute__((noinline))
|
|
|
|
#define cold __attribute__((cold))
|
|
|
|
#define fall __attribute__((fallthrough))
|
|
|
|
|
|
|
|
#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 */
|