From a8e7b5e4f5ee499976c14803a5adb19b4e90e802 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Fri, 13 Dec 2024 17:50:50 +0800 Subject: [PATCH] Updated implementation for VariableDeclarationExpression shared object file loading. --- src/n8/ast/expression/VariableDeclarationExpression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/n8/ast/expression/VariableDeclarationExpression.cpp b/src/n8/ast/expression/VariableDeclarationExpression.cpp index 531cbb4..787226c 100644 --- a/src/n8/ast/expression/VariableDeclarationExpression.cpp +++ b/src/n8/ast/expression/VariableDeclarationExpression.cpp @@ -109,7 +109,7 @@ NativeFunction VariableDeclarationExpression::loadNativeFunction( depHandle = LoadLibraryA(entryDep.c_str()); #endif - if(Runtime::hasLoadedLibrary(entryDep)) + if(!Runtime::hasLoadedLibrary(entryDep)) Runtime::addLoadedLibrary(entryDep, depHandle); }