Go to the source code of this file.
|
| #define | __swilib_begin |
| |
| #define | __swilib_end _Pragma("GCC diagnostic pop") |
| |
| #define | __swi_begin(number) static inline __attribute__((flatten)) |
| |
| #define | __swi_end(number, func, call) |
| |
| #define | __swi_noreturn_begin(number) static inline __attribute__((flatten, noreturn)) |
| |
| #define | __swi_noreturn_end(number, func, call) |
| |
| #define | __swi_returns_twice_begin(number) static inline __attribute__((always_inline, returns_twice)) |
| |
| #define | __swi_returns_twice_end(number, func, call) |
| |
| #define | __swi_variadic_begin(number) |
| |
| #define | __swi_variadic_end(number, func, ...) |
| |
| #define | __swi_format(type, ...) __attribute__((format(type, ##__VA_ARGS__))) |
| |
| #define | __swi_invoke(number, func, ...) ((__typeof__(&(func))) __sys_switab_addres[number])(__VA_ARGS__) |
| |
◆ __swilib_begin
Value: _Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wpedantic\"")
Definition at line 25 of file gcc.h.
◆ __swilib_end
| #define __swilib_end _Pragma("GCC diagnostic pop") |
Definition at line 28 of file gcc.h.
◆ __swi_begin
| #define __swi_begin |
( |
| number | ) |
static inline __attribute__((flatten)) |
Definition at line 53 of file gcc.h.
◆ __swi_end
| #define __swi_end |
( |
| number, |
|
|
| func, |
|
|
| call ) |
Value: { \
if (number < 0x8000) { \
} else { \
} \
}
const int __sys_switab_addres[]
GCC compiler support.
Definition at line 54 of file gcc.h.
◆ __swi_noreturn_begin
| #define __swi_noreturn_begin |
( |
| number | ) |
static inline __attribute__((flatten, noreturn)) |
Definition at line 62 of file gcc.h.
◆ __swi_noreturn_end
| #define __swi_noreturn_end |
( |
| number, |
|
|
| func, |
|
|
| call ) |
Value:
Definition at line 63 of file gcc.h.
◆ __swi_returns_twice_begin
| #define __swi_returns_twice_begin |
( |
| number | ) |
static inline __attribute__((always_inline, returns_twice)) |
Definition at line 67 of file gcc.h.
◆ __swi_returns_twice_end
| #define __swi_returns_twice_end |
( |
| number, |
|
|
| func, |
|
|
| call ) |
Value:
Definition at line 68 of file gcc.h.
◆ __swi_variadic_begin
| #define __swi_variadic_begin |
( |
| number | ) |
|
Value: _Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wformat-nonliteral\"") \
unsigned int __attribute__((warning("Function not found in swilib."))) ___bad_swi_addr___(unsigned int addr)
GCC compiler support (Patches).
Definition at line 72 of file gcc.h.
◆ __swi_variadic_end
| #define __swi_variadic_end |
( |
| number, |
|
|
| func, |
|
|
| ... ) |
Value: { \
return ((__typeof__(&func))
__sys_switab_addres[number])(__VA_ARGS__, __builtin_va_arg_pack()); \
} \
_Pragma("GCC diagnostic pop")
Definition at line 76 of file gcc.h.
◆ __swi_format
| #define __swi_format |
( |
| type, |
|
|
| ... ) __attribute__((format(type, ##__VA_ARGS__))) |
Definition at line 83 of file gcc.h.
◆ __swi_invoke
| #define __swi_invoke |
( |
| number, |
|
|
| func, |
|
|
| ... ) ((__typeof__(&(func))) __sys_switab_addres[number])(__VA_ARGS__) |
Definition at line 86 of file gcc.h.
◆ __sys_switab_addres
| const int __sys_switab_addres[] |
|
extern |