Skip to content

Commit c72155d

Browse files
committed
add some doc comments
1 parent 9588963 commit c72155d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

include/CLI/Macros.hpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,22 +125,26 @@
125125
/** rtti enabled */
126126
#ifndef CLI11_HAS_RTTI
127127
#if defined(__GXX_RTTI) && __GXX_RTTI == 1
128+
//gcc
128129
#define CLI11_HAS_RTTI 1
129130
#elif defined(_CPPRTTI) && _CPPRTTI == 1
131+
//msvc
130132
#define CLI11_HAS_RTTI 1
131133
#elif defined(__NO_RTTI__) && __NO_RTTI__ == 1
134+
//intel
132135
#define CLI11_HAS_RTTI 0
133136
#elif defined(__has_feature)
137+
//clang and other newer compilers
134138
#if __has_feature(cxx_rtti)
135139
#define CLI11_HAS_RTTI 1
136140
#else
137141
#define CLI11_HAS_RTTI 0
138142
#endif
139143
#elif defined(__RTTI) || defined(__INTEL_RTTI__)
144+
// more intel and some other compilers
140145
#define CLI11_HAS_RTTI 1
141146
#else
142-
// we currently assumed it was on so leave it that way
143-
#define CLI11_HAAS_RTTI 1
147+
#define CLI11_HAAS_RTTI 0
144148
#endif
145149
#endif
146150

0 commit comments

Comments
 (0)