[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: pop user values in C functions
- From: Marc Balmer <marc@...>
- Date: Tue, 10 May 2016 14:25:21 +0200
... I am getting slightly confused from to much hacking, so in a function that creates new uservalues, can I just leave them on the stack?
Will Lua automatically remove/pop excess values from the stock when the function returns (e.g. I create four temp uservalues and
one result that I actually need. Then I return 1. Will the four uservalues do any harm?