Skip to content

Commit

Permalink
Update Main.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
MAJigsaw77 authored Aug 15, 2024
1 parent a3f3fd7 commit 122e21d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/return-value/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 122e21d

Please sign in to comment.