Advertisement
ddto

Untitled

Aug 11th, 2024
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #include "Windows.h"
  2. #include <iostream>
  3. #include "core/Types.h"
  4. #include "core/Console.h"
  5. #include "core/Logging.h"
  6. #include "core/Exception.h"
  7. #include <format>
  8.  
  9. using namespace spc;
  10. int main(int argc, char** argv)
  11. {
  12. con::Init();
  13.  
  14. try
  15. {
  16. throw exc::RenderException("wrong");
  17. }
  18. catch (const exc::IException& e)
  19. {
  20. log::Error(e.What());
  21. }
  22.  
  23. /*
  24. String s2 = "text";
  25. log::Debug(s2);
  26. log::Info(s2);
  27. log::Warning(s2);
  28. log::Error(s2);
  29. */
  30.  
  31. //std::cout << "\x1b[31mMagenta\x1b[0m";
  32. std::cin.get();
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement