| 374 | |
| 375 | template<class... Args> |
| 376 | static void color_debug_log(const char *color, Args... args) |
| 377 | { |
| 378 | if (wf::detect_color_mode() == wf::log::LOG_COLOR_MODE_OFF) |
| 379 | { |
| 380 | LOGD(args...); |
| 381 | } else |
| 382 | { |
| 383 | LOGD(color, args..., CLEAR_COLOR); |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | static std::string fmt_pointer(void *ptr) |
| 388 | { |