只列出类型关键字,分类还需要大家一起努力,看看哪些可以修饰函数,那些修饰变量,那些修饰结构体:
__return_ptr __org_typedef __high new
__struct_ptr __near int
__array_ptr __far
__hidden __bad_cc
__restrict __userpurge inline __usercall
__ptr64 __unaligned friend bool __thiscall
__ptr32 protected extern auto __fastcall
__cppobj namespace double __stdcall
__noreturn __interrupt union __int256 __pascal
__pure volatile __int512 __cdecl
__attribute__ unsigned short __int128
__spoils template float __int64
_BOOL4 register const __int32
_BOOL2 virtual class __int16
_BOOL1 typedef __int8
_UNKNOWN private void __huge
_TBYTE mutable this __near
_OWORD default long __far
_QWORD struct flat __declspec
_DWORD static __thread
_WORD signed __import
_BYTE public char __export
The following additional keywords can be used in type declarations:
_BOOL1 a boolean type with explicit size specification (1 byte)
_BOOL2 a boolean type with explicit size specification (2 bytes)
_BOOL4 a boolean type with explicit size specification (4 bytes)
__int8 a integer explicit size specification (1 byte)
__int16 a integer explicit size specification (2 bytes)
__int32 a integer explicit size specification (4 bytes)
__int64 a integer explicit size specification (8 bytes)
__int128 a integer explicit size specification (16 bytes)
_BYTE an unknown type; the only known info is its size: 1 byte
_WORD an unknown type; the only known info is its size: 2 bytes
_DWORD an unknown type; the only known info is its size: 4 bytes
_QWORD an unknown type; the only known info is its size: 8 bytes
_OWORD an unknown type; the only known info is its size: 16 bytes
_TBYTE 10-byte floating point value
_UNKNOWN no info is available
__pure pure function: always returns the same value and does not
modify memory in a visible way
__noreturn function does not return
__hidden hidden function argument
__return_ptr pointer to return value; implies hidden
__struct_ptr was initially a structure value
__array_ptr was initially an array