From 122e21dc4cb9ec46171a8b4fb36d6d6891e94d29 Mon Sep 17 00:00:00 2001 From: Mihai Alexandru <77043862+MAJigsaw77@users.noreply.github.com> Date: Thu, 15 Aug 2024 23:14:41 +0300 Subject: [PATCH] Update Main.hx --- examples/return-value/Main.hx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/return-value/Main.hx b/examples/return-value/Main.hx index 984134b..651a6f6 100644 --- a/examples/return-value/Main.hx +++ b/examples/return-value/Main.hx @@ -22,9 +22,13 @@ class Main /* run the script */ LuaL.dofile(vm, "script.lua"); - trace('stack: ${Lua.gettop(vm)}'); + final stack:Int = Lua.gettop(vm); - trace('num: ' + Lua.tointeger(vm, 1)); + trace('stack: $stack'); + + final num:Int = Lua.tointeger(vm, 1); + + trace('num: $num'); /* cleanup Lua */ Lua.close(vm);