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

Function log

samples/example.cpp:14–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include <chaiscript/dispatchkit/function_call.hpp>
13
14void log(const std::string &msg)
15{
16 std::cout << "[" << time(nullptr) << "] " << msg << '\n';
17}
18
19void log(const std::string &module, const std::string &msg)
20{

Callers 3

bound_logFunction · 0.85
do_callbacksMethod · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected