| 93 | } |
| 94 | |
| 95 | std::string lite::ssprintf(const char* format, ...) { |
| 96 | if (!format) |
| 97 | return ""; |
| 98 | va_list ap; |
| 99 | va_start(ap, format); |
| 100 | auto ret = svsprintf(format, ap); |
| 101 | va_end(ap); |
| 102 | return ret; |
| 103 | } |
| 104 | |
| 105 | void lite::print_log(LiteLogLevel level, const char* format, ...) { |
| 106 | if (!format) |
nothing calls this directly
no test coverage detected