summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b18b7c6..cf70271 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,8 +1,21 @@
#include <cstdio>
+#include <exception>
+
+#include "window.hpp"
+
+PKEWindowProperties windowProps{};
int main() {
printf("PKE ENTERING\n");
+ try {
+ CreateWindow(&windowProps);
+ } catch (const std::exception &exc) {
+ printf("EXCEPTION: %s\n", exc.what());
+ } catch (...) {
+ printf("UNHANDLED EXCEPTION\n");
+ }
+ DestroyWindow();
printf("PKE EXITING\n");
return 0;
}