From 68ce253ca289030922581b10a34094750c34d729 Mon Sep 17 00:00:00 2001 From: BanceDev Date: Fri, 27 Sep 2024 09:33:01 -0400 Subject: added exit api function --- src/builtins.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/builtins.c') diff --git a/src/builtins.c b/src/builtins.c index 6579790..835e7b9 100644 --- a/src/builtins.c +++ b/src/builtins.c @@ -136,9 +136,9 @@ int lush_lua(lua_State *L, char ***args) { // move args forward to any command line args args[0]++; - lua_load_script(L, script, args[0]); + int rc = lua_load_script(L, script, args[0]); // return pointer back to lua file args[0]--; - return 0; + return rc; } -- cgit v1.2.3-59-g8ed1b