From a16d0fc0e05ba00caa4cb357f7158b803af8bc69 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 6 Aug 2019 21:04:32 +0200 Subject: [PATCH] hyper_main separate (no real need yet) --- hyper.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hyper.cpp b/hyper.cpp index 5cc463ba..921a2fa9 100644 --- a/hyper.cpp +++ b/hyper.cpp @@ -42,8 +42,7 @@ void moreStack() { hr::hookset *hr::hooks_main; -#ifndef NOMAIN -int main(int argc, char **argv) { +int hyper_main(int argc, char **argv) { using namespace hr; #if ISWEB emscripten_get_commandline(); @@ -77,5 +76,10 @@ int main(int argc, char **argv) { profile_info(); return 0; } + +#ifndef NOMAIN +int main(int argc, char **argv) { + return hyper_main(argc, argv); + } #endif #endif