Skip to content

Commit

Permalink
hinting log function
Browse files Browse the repository at this point in the history
  • Loading branch information
defiantnerd committed Mar 13, 2023
1 parent 28cec70 commit f14d5b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/detail/os/osutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ namespace os
std::string getParentFolderName();
std::string getBinaryName();

void log(const char* text);

template <typename... Args>
void log(const char* format_str, Args&&... args) {
fmt::memory_buffer buf;
fmt::format_to(std::back_inserter(buf), format_str, args...);
buf.push_back(0);
log(buf.data());
log((const char*)buf.data());
};
void log(const char* text);
}

#ifndef CLAP_WRAPPER_LOGLEVEL
Expand Down

0 comments on commit f14d5b2

Please sign in to comment.