MCPcopy Create free account
hub / github.com/comaps/comaps / SetLastError

Function SetLastError

generator/utils.cpp:33–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31{
32std::string g_lastError;
33void SetLastError(std::string error)
34{
35 static std::mutex m;
36 std::lock_guard guard(m);
37 g_lastError.swap(error);
38}
39
40void ErrorHandler(int signum)
41{

Callers

nothing calls this directly

Calls 1

swapMethod · 0.45

Tested by

no test coverage detected