Skip to content

Commit

Permalink
Fixed __EMSCRIPTEN__ definition detection on main source file.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Nov 10, 2024
1 parent 27ee873 commit 74f604a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/N8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <iostream>
#include <stdexcept>

#ifndef __EMSCRIPTEN__
auto printBanner(N8Util::ArgumentParser argParse) -> void {
std::cout
<< "\u001b[1;36mN8 Programming Language ("
Expand Down Expand Up @@ -166,8 +167,6 @@ auto interpreter(std::vector<std::string> 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.");
Expand Down

0 comments on commit 74f604a

Please sign in to comment.