MCPcopy Create free account
hub / github.com/covscript/covscript / add_func

Method add_func

sources/debugger.cpp:278–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276
277 template <typename T>
278 void add_func(const std::string &name, const std::string &shortcut, T &&func)
279 {
280 m_map.emplace(name, std::forward<T>(func));
281 m_map.emplace(shortcut, std::forward<T>(func));
282 }
283
284 bool exist(const std::string &name)
285 {

Callers 1

covscript_mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected