lua-users home
lua-l archive

Re: Stack usage behaviour

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2013年11月11日 Tim Channon <tc@gpsl.net>:
> Can someone please clarify fundamental stack behaviour.
>
> I am writing a significant Lua binary library.
>
> abc = mylib(table)
>
> On entry to the C the Lua stack contains one parameter item.
>
> On return from C there is one new item created by the C library.
>
> Behaviour question:- Should the C remove the original item or leave it
> in place? (if left in place, what parameter count should be returned?)
Leave it there. Lua will clean up everything.

AltStyle によって変換されたページ (->オリジナル) /