2004-04-26 02:53:41 +04:00
|
|
|
#ifndef _SYS_CDEFS_H
|
|
|
|
#define _SYS_CDEFS_H
|
|
|
|
|
|
|
|
|
2008-03-23 04:21:53 +03:00
|
|
|
#ifndef __THROW
|
|
|
|
#define __THROW
|
|
|
|
#endif
|
|
|
|
|
2004-04-26 02:53:41 +04:00
|
|
|
#ifndef __P
|
|
|
|
#define __P(s) s
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __CONCAT
|
|
|
|
#define __CONCAT(x,y) x ## y
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __STRING
|
|
|
|
#define __STRING(x) #x
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
#define __BEGIN_DECLS extern "C" {
|
|
|
|
#define __END_DECLS };
|
|
|
|
#else
|
|
|
|
#define __BEGIN_DECLS
|
|
|
|
#define __END_DECLS
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define __dead
|
|
|
|
#define __dead2
|
|
|
|
|
2015-03-27 22:15:04 +03:00
|
|
|
#ifndef __weak_reference
|
|
|
|
#define __weak_reference(sym,alias) \
|
|
|
|
__asm__(".weak " #alias); \
|
|
|
|
__asm__(".equ " #alias ", " #sym)
|
|
|
|
#endif
|
2004-04-26 02:53:41 +04:00
|
|
|
|
|
|
|
#endif
|