From d920e5d62020d751ccaa3491cc66275ade749011 Mon Sep 17 00:00:00 2001 From: quou Date: Fri, 27 Dec 2024 18:52:48 +1100 Subject: building and running on windows with visual studio --- c2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'c2.cpp') 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; } -- cgit v1.2.3-54-g00ecf