[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: How know what functions are defined in a lua script ?
- From: "Vincent Penquerc'h" <vincent@...>
- Date: Tue, 28 Mar 2000 15:42:28 +0100
> 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...