lua-users home
lua-l archive

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

> 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 you don't want to use a sort of "registration" system in your scripts,
you can list all globals before lua_dofile, do that after as well, and
see what globals were added. You then ask for their type to see if they
are functions. This won't give you any information on their argument
types, though, so it could be dodgy to make an autocall from C...