MCPcopy Create free account
hub / github.com/OpenSteam001/OpenSteamTool / ensureUnique

Method ensureUnique

tools/ipc_codegen/ipc_codegen.cpp:577–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575 }
576
577 void ensureUnique(std::unordered_set<std::string>& names,
578 const std::string& name,
579 const char* kind,
580 int line) {
581 if (!names.insert(name).second)
582 fail(line, "duplicate " + std::string(kind) + " '" + name + "'");
583 }
584
585 [[noreturn]] void fail(const std::string& message) const {
586 lexer_.die(token_.line, token_.col, message);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected