From 74f604a469d5a1897e77c1100632849068ff90da Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Mon, 11 Nov 2024 00:42:29 +0800 Subject: [PATCH] Fixed __EMSCRIPTEN__ definition detection on main source file. --- src/N8.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/N8.cpp b/src/N8.cpp index 111111f..db78614 100644 --- a/src/N8.cpp +++ b/src/N8.cpp @@ -22,6 +22,7 @@ #include #include +#ifndef __EMSCRIPTEN__ auto printBanner(N8Util::ArgumentParser argParse) -> void { std::cout << "\u001b[1;36mN8 Programming Language (" @@ -166,8 +167,6 @@ auto interpreter(std::vector files) -> int { return 1; } -#ifndef __EMSCRIPTEN__ - auto main(int argc, char** argv) -> int { N8Util::ArgumentParser argParse(argc, argv); argParse.defineParameter("h", "help", "Show this help banner.");