MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / do_callbacks

Method do_callbacks

samples/example.cpp:51–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50
51 void do_callbacks(const std::string &inp)
52 {
53 log("Running Callbacks: " + inp);
54 for (auto & m_callback : m_callbacks)
55 {
56 log("Callback: " + m_callback.first, m_callback.second(inp));
57 }
58 }
59};
60
61void take_shared_ptr(const std::shared_ptr<const std::string> &p)

Callers 1

mainFunction · 0.80

Calls 1

logFunction · 0.85

Tested by

no test coverage detected