charcoal/Example/main.cpp
elipzer 5db5ce971c Probably BREAKING - Moved everything into proper directories
Also added a copy pre-build even for .h files into the include
directory for charcoal and charcoal-builtin
2018-10-10 23:56:39 -04:00

29 lines
515 B
C++

#include "deps.h"
#include <string>
#include "Exception.h"
#include "MyApplication.h"
int main(int argc, char** argv)
{
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;
}
}