summaryrefslogtreecommitdiff
path: root/c2.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-27 18:52:48 +1100
committerquou <quou@disroot.org>2024-12-27 18:52:48 +1100
commitd920e5d62020d751ccaa3491cc66275ade749011 (patch)
treee806a95c598e255f9883de98cc350a3b9279d0ce /c2.cpp
parente8c93463b2ae5114f0c88e768e5625abac9d5a50 (diff)
building and running on windows with visual studio
Diffstat (limited to 'c2.cpp')
-rw-r--r--c2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/c2.cpp b/c2.cpp
index 223e0b0..ba07606 100644
--- a/c2.cpp
+++ b/c2.cpp
@@ -65,7 +65,7 @@ struct Config_Buffer {
float offset[2];
};
-int main() {
+extern "C" int entrypoint() {
Arena video_arena, asset_arena, ui_arena;
Asset_Arena assets;
Device* dev;
@@ -180,4 +180,5 @@ int main() {
dev->destroy_buffer(cbuf);
dev->destroy();
app->destroy();
+ return 0;
}