MCPcopy Create free account
hub / github.com/boostorg/filesystem / macro_value

Function macro_value

test/path_unit_test.cpp:1132–1147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1130
1131
1132inline 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected