charcoal/Example/main.cpp

29 lines
515 B
C++
Raw Normal View History

2018-10-10 17:44:15 -04:00
#include "deps.h"
#include <string>
#include "Exception.h"
2018-09-04 15:25:54 -04:00
#include "MyApplication.h"
2018-09-06 01:14:00 -04:00
int main(int argc, char** argv)
2018-09-04 15:41:17 -04:00
{
try
{
MyApplication my_app(1280, 720);
return my_app.run();
}
catch (Exception& e)
{
OutputDebugString("Caught Exception: [");
OutputDebugString(e.get_file_name().c_str());
OutputDebugString(":");
OutputDebugString(std::to_string(e.get_line()).c_str());
OutputDebugString("]: ");
OutputDebugString(e.get_message().c_str());
OutputDebugString("\n");
return 1;
}
2018-09-04 15:25:54 -04:00
}