MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / makeConditionalVariable

Function makeConditionalVariable

tools/dmake/dmake.cpp:188–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186
187
188static void makeConditionalVariable(std::ostream &os, const std::string &variable, const std::string &defaultValue)
189{
190 os << "ifndef " << variable << '\n'
191 << " " << variable << '=' << defaultValue << '\n'
192 << "endif\n"
193 << "\n";
194}
195
196static int write_vcxproj(const std::string &proj_name, const std::function<void(std::string&)> &source_f, const std::function<void(std::string&)> &header_f)
197{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected