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);