SWILIB API (SG)
Loading...
Searching...
No Matches
gcc_patch.h
Go to the documentation of this file.
1
#pragma once
2
7
unsigned
int
__attribute__
((warning(
"Function not found in swilib."
))) ___bad_swi_addr___(
unsigned
int
addr);
8
9
/* Modern */
10
#ifdef __cplusplus
11
#define __swilib_begin \
12
_Pragma("GCC diagnostic push") \
13
_Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
14
extern "C" {
15
#define __swilib_end } \
16
_Pragma("GCC diagnostic pop")
17
#else
18
#define __swilib_begin \
19
_Pragma("GCC diagnostic push") \
20
_Pragma("GCC diagnostic ignored \"-Wpedantic\"")
21
#define __swilib_end \
22
_Pragma("GCC diagnostic pop")
23
#endif
24
25
#define __swi_begin(number)
26
#define __swi_end(number, func, call)
27
28
#define __swi_noreturn_begin(number)
29
#define __swi_noreturn_end(number, func, call)
30
31
#define __swi_returns_twice_begin(number)
32
#define __swi_returns_twice_end(number, func, call)
33
34
#define __swi_variadic_begin(number)
35
#define __swi_variadic_end(number, func, ...)
36
37
#define __swi_format(type, ...) __attribute__((format(type, ##__VA_ARGS__)))
__attribute__
unsigned int __attribute__((warning("Function not found in swilib."))) ___bad_swi_addr___(unsigned int addr)
GCC compiler support (Patches).
include
swilib
compiler
gcc_patch.h
Generated by
1.11.0