Skip to content

Why initial top is 1, not 0? #187

Answered by gudzpoz
dayo05 asked this question in Q&A
Jun 25, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gudzpoz
Comment options

Answer selected by dayo05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants