一呼百應, "one call, a hundred responses"
Loading...
Searching...
No Matches
Attribute Detection
Collaboration diagram for Attribute Detection:

Macros

#define ein_has_attribute(__x)
 __has_attribute(x)
 
#define ein_has_declspec_attribute(__x)
 portable __has_declspec_attribute(__x)
 

Detailed Description

macros for determining supported attributes

Macro Definition Documentation

◆ ein_has_attribute

#define ein_has_attribute ( __x)
Value:
0

__has_attribute(x)

Used as the primary means for detecting advanced annotation features

Definition at line 33 of file common.hpp.

◆ ein_has_declspec_attribute

#define ein_has_declspec_attribute ( __x)
Value:
0

portable __has_declspec_attribute(__x)

Defaults to 1 on MSVC, where we can assume __declspec(x) is well supported.

Uses the __has_declspec_attribute(x) implementation in Clang

Defaults to 0 otherwise.

Definition at line 54 of file common.hpp.