[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Poping C function arguments from the Lua stack
- From: Flyer31 Test <flyer31@...>
- Date: Thu, 25 Nov 2021 10:17:43 +0100
Why do you have 8k stack limit? (what system do you use? usually in
"normal CPU systems" like PC the stack size will be more in Megabyte
On Thu, Nov 25, 2021 at 10:05 AM Meir Shpilraien <email@example.com> wrote:
> I was wondering whether or not it's OK to pop out from the stack the arguments given to a native C function from Lua code. I am asking because users might send a lot of arguments to the C function (using unpack for example) and acquire all the room on the stack (which is set by default to 8K), leaving no place to push replies or perform other operations that require the stack.
> I am using Lua 5.1.5 (if it makes any difference).
> The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.