[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How know what functions are defined in a lua script ?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 28 Mar 2000 12:10:15 -0300 (EST)
>From: Christophe Gimenez <firstname.lastname@example.org>
>Is there a way to know (in a C function) what functions had been defined in a lua script that have been procedeed by a lua_dofile() ?
If your script only defines global functions (eg. function f()... end), then
you can set a "setglobal" tag method for tag(nil) and see if the new value is
a function; if it is, then save the name in a list to be processed after dofile.