MCPcopy Create free account
hub / github.com/dfranx/ShaderDebugger / RemoveMacro

Method RemoveMacro

libs/wgtcc/cpp.h:121–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 }
120
121 void RemoveMacro(const std::string& name) {
122 auto res = macroMap_.find(name);
123 if (res == macroMap_.end())
124 return;
125 if (res->second.PreDef()) // Cannot undef predefined macro
126 return;
127 macroMap_.erase(res);
128 }
129
130 std::string* SearchFile(const std::string& name,
131 const bool libHeader,

Callers

nothing calls this directly

Calls 2

endMethod · 0.80
PreDefMethod · 0.80

Tested by

no test coverage detected