[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Need some help to use TFUNCTION
- From: Brigham Toskin <brighamtoskin@...>
- Date: Tue, 2 Jun 2015 18:02:56 -0700
You use the API function lua_call and its cousins to call a function you have on the stack. As far as saving it in C land, I don't think you can export it across the API barrier; someone please correct me if I'm wrong. If you do need a persistent handle to it for future use, what you can do is put it in the registry (basically a globally-available table for use by clients of the Lua API).