|
Lua's VM stack is and is totally separate from the C stack.You can push, pop, dup and swap to your heart's content without fear of corrupting it.
- Peter Andrew Durdin wrote:
Ando's question brings to my mind a question that I couldn't find a clear answer to in the docs: When a C function is passed arguments (from Lua) on the stack, is it all right for the function to reorder or pop these arguments from the stack so that it can manipulate them more easily? Or, to phrase it another way: how much of the stack would the function need to preserve in order to prevent stack corruption? Andrew