MCPcopy Create free account
hub / github.com/acl-dev/acl / vmsg7

Method vmsg7

lib_acl_cpp/src/stdlib/log.cpp:133–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void log::vmsg7(size_t section, size_t level, const char* fname,
134 int line, const char* func, const char* fmt, va_list ap)
135{
136 if (!acl_do_debug((int) section, (int) level)) {
137 return;
138 }
139
140 const char* ptr = strrchr(fname, '/');
141 if (ptr) {
142 fname = ptr + 1;
143 }
144#ifdef ACL_WINDOWS
145 if (ptr == NULL) {
146 ptr = strrchr(fname, '\\');
147 if (ptr) {
148 fname = ptr + 1;
149 }
150 }
151#endif
152
153 acl::string s;
154 s.format("%s(%d), %s: ", fname, line, func);
155 s.vformat_append(fmt, ap);
156 acl_msg_info("%s", s.c_str());
157}
158
159void log::warn1(const char* fmt, ...)
160{

Callers

nothing calls this directly

Calls 4

acl_do_debugFunction · 0.85
acl_msg_infoFunction · 0.85
formatMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected