lua-users home
lua-l archive

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

>From: Christophe Gimenez <>
>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.