pop user values in C functions
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: pop user values in C functions
- From: Marc Balmer <marc@...>
- Date: 2016年5月10日 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?