From 5ae3d5d538823af753b4a9b2d4653007e73f619b Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Mon, 11 Nov 2024 00:52:25 +0800 Subject: [PATCH] Fixed implementation for Runtime::repl() function. --- src/n8/core/Runtime.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/n8/core/Runtime.cpp b/src/n8/core/Runtime.cpp index edfa912..72e85b9 100644 --- a/src/n8/core/Runtime.cpp +++ b/src/n8/core/Runtime.cpp @@ -104,6 +104,7 @@ static inline bool isBalanced(const std::string& input) { return stack.empty(); } +#ifndef __EMSCRIPTEN__ void Runtime::repl() { SymbolTable symtab; std::string input, line; @@ -234,7 +235,7 @@ void Runtime::repl() { } } -#ifdef __EMSCRIPTEN__ +#else void Runtime::setOutputElementId(std::string id) { Runtime::elementId = id;