![]() |
||
|
ThePhD, As you now already know, leaving arguments on the stack with return values is generally not a problem. However, if this function manipulates the stack then their is the potential for a problem to arise. This is because the stack space given to each function is a fixed size (20 IIRC, with an additional five for play). For functions that are going to use so much stack, you have to call lua_checkstack[1] [1] http://www.lua.org/manual/5.3/manual.html#lua_checkstack Regards, Liam On 09/07/2016 23:08, ThePhD wrote:
|