mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Restore missing cosmopolitan documentation on website
This commit is contained in:
parent
58352df0a4
commit
d9d5f45e2d
36 changed files with 715 additions and 228 deletions
|
@ -44,6 +44,10 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __chibicc__
|
||||
#define __extension__
|
||||
#endif
|
||||
|
||||
#if __STDC_VERSION__ + 0 < 201112
|
||||
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
||||
#define _Alignas(x) __attribute__((__aligned__(x)))
|
||||
|
@ -828,13 +832,18 @@ void abort(void) wontreturn;
|
|||
#define __static_yoink_source(PATH)
|
||||
#endif
|
||||
|
||||
#define __strong_reference(sym, aliassym) \
|
||||
extern __typeof(sym) aliassym __attribute__((__alias__(#sym)))
|
||||
#define __weak_reference(sym, alias) \
|
||||
__asm__(".weak\t" #alias "\n\t" \
|
||||
".equ\t" #alias ", " #sym "\n\t" \
|
||||
".type\t" #alias ",@notype")
|
||||
|
||||
#ifndef __chibicc__
|
||||
#define __strong_reference(sym, alias) \
|
||||
extern __typeof(sym) alias __attribute__((__alias__(#sym)))
|
||||
#else
|
||||
#define __strong_reference(sym, alias) __weak_reference(sym, alias)
|
||||
#endif
|
||||
|
||||
#define __funline \
|
||||
extern __inline \
|
||||
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue