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

Method AddMacro

libs/wgtcc/cpp.h:112–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 std::string* text, bool preDef = false);
111
112 void AddMacro(const std::string& name, const Macro& macro) {
113 auto res = macroMap_.find(name);
114 if (res != macroMap_.end()) {
115 // TODO(wgtdkp): give warning
116 macroMap_.erase(res);
117 }
118 macroMap_.insert(std::make_pair(name, macro));
119 }
120
121 void RemoveMacro(const std::string& name) {
122 auto res = macroMap_.find(name);

Callers

nothing calls this directly

Calls 1

endMethod · 0.80

Tested by

no test coverage detected