mirror of
https://github.com/autc04/Retro68.git
synced 2024-10-17 15:24:37 +00:00
11 lines
276 B
C
11 lines
276 B
C
#define weak_alias(name, aliasname) \
|
|
extern __typeof (name) aliasname __attribute__ ((weak, alias (#name)));
|
|
|
|
#if 0
|
|
#define weak_extern(symbol) _weak_extern (symbol)
|
|
#define _weak_extern(symbol) asm (".weak " #symbol);
|
|
#endif
|
|
|
|
#define weak_function __attribute__ ((weak))
|
|
|