| 1130 | |
| 1131 | |
| 1132 | inline const char* macro_value(const char* name, const char* value) |
| 1133 | { |
| 1134 | static const char* no_value = "[no value]"; |
| 1135 | static const char* not_defined = "[not defined]"; |
| 1136 | |
| 1137 | //if (0 != strcmp(name, value + 1)) // macro is defined |
| 1138 | //{ |
| 1139 | // if (value[1]) |
| 1140 | // return value; |
| 1141 | // else |
| 1142 | // return no_value; |
| 1143 | //} |
| 1144 | //return not_defined; |
| 1145 | |
| 1146 | return 0 == strcmp(name, value + 1) ? not_defined : (value[1] ? value : no_value); |
| 1147 | } |
| 1148 | |
| 1149 | #define BOOST_MACRO_VALUE(X) macro_value(#X, BOOST_STRINGIZE(=X)) |
| 1150 |
nothing calls this directly
no outgoing calls
no test coverage detected