-
val lua = LuaJit()
assertEquals(1, lua.top) // why??
for((a, b) in lua.get().entries)
println(a.toJavaObject().toString() + " " + b.toJavaObject()) I made simple example of instance creation, What is it? the for loop prints:
|
Beta Was this translation helpful? Give feedback.
Answered by
gudzpoz
Jun 28, 2024
Replies: 1 comment 1 reply
-
And also, can I just pop it? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The value(s) on stack are unintended remains of Lua library initialization and should be safe to remove.
However, leaving the stack empty might trigger a bug I just found:
LuaValue::size
seemed to pop an extra item off the stack, which has been fixed by a new v4.0.1 version.