[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Registering Lua functions of loaded chunks.
- From: Wesley Smith <wesley.hoke@...>
- Date: Tue, 10 Aug 2010 17:28:50 +0200
> But, if I load a chunk containing one or more Lua functions, how do I cause the individual functions to be "registered"?
>
> I've found no examples of this.
any global function in your chunk will be "registered". More
accurately, it will be part of the global lua_State and you can then
call it. Local functions will be inaccessible outside the chunk
itself meaning you can't grab them from C under normal circumstances.
wes