Advertisement
Guest User

main.cpp

a guest
Mar 16th, 2019
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include "Application/Application.h"
  2.  
  3. int main()
  4. {
  5.     Application app;
  6.  
  7. #ifndef NDEBUG
  8.     spdlog::set_level(spdlog::level::debug);
  9. #endif
  10.     try
  11.     {
  12.         app.init();
  13.         app.run();
  14.     }
  15.     catch (const std::exception& e)
  16.     {
  17.         spdlog::critical(e.what());
  18.         system("PAUSE");
  19.         return EXIT_FAILURE;
  20.     }
  21.  
  22.     system("PAUSE");
  23.  
  24.     return EXIT_SUCCESS;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement