Advertisement
Guest User

Untitled

a guest
Jun 13th, 2021
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.81 KB | None | 0 0
  1. template <typename... Args>
  2. void ConsoleError(const char *format, const Args & ... args) {
  3.     IConsoleError(fmt::format(format, args...).c_str());
  4. }
  5.  
  6. template <typename... Args>
  7. void ConsoleWarning(const char *format, const Args & ... args) {
  8.     IConsoleWarning(fmt::format(format, args...).c_str());
  9. }
  10.  
  11. template <typename... Args>
  12. void ConsoleInfo(const char *format, const Args & ... args) {
  13.     IConsolePrintF(CC_INFO, "%s", fmt::format(format, args...).c_str());
  14. }
  15.  
  16. template <typename... Args>
  17. void ConsoleDebug(const char *format, const Args & ... args) {
  18.     IConsolePrintF(CC_DEBUG, "%s", fmt::format(format, args...).c_str());
  19. }
  20.  
  21. template <typename... Args>
  22. void ConsoleDefault(const char *format, const Args & ... args) {
  23.     IConsolePrintF(CC_DEFAULT, "%s", fmt::format(format, args...).c_str());
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement