summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-07-01 14:19:11 -0400
committerJonathan Bradley <jcb@pikum.xyz>2023-07-01 14:19:11 -0400
commit871649f7ffd327d317e96cb9f5b83d4bfc145ac9 (patch)
tree8f585a9329c0296bf92160b89e3e447404885e5d /src/main.cpp
parent01cc213bab75a5bc0748e909e3828a00a77c08b0 (diff)
add window
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;
}