mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
25 lines
656 B
C
25 lines
656 B
C
#ifndef _KERNEL_H
|
|
#define _KERNEL_H
|
|
|
|
/*
|
|
* Attribute definitions
|
|
*/
|
|
#define __align(_b) __attribute__((aligned(_b)))
|
|
#define __depricated __attribute__((depricated))
|
|
#define __packed __attribute__((packed))
|
|
#define __noreturn __attribute__((noreturn))
|
|
#define __const __attribute__((const))
|
|
#define __pure __attribute__((pure))
|
|
#define __inline __attribute__((always_inline))
|
|
#define __no_inline __attribute__((never_inline))
|
|
#define __section(_s) __attribute__((section(_s)))
|
|
#define __cold __attribute__((cold))
|
|
#define __hot __attribute__((hot))
|
|
#define __naked __attribute__((naked))
|
|
|
|
/*
|
|
* Utility macros
|
|
*/
|
|
#define sizeof_array(_a) ()
|
|
#endif
|