[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Help me!
- From: Julien Hamaide <julien.hamaide@...>
- Date: Wed, 04 Jul 2007 16:27:53 +0200
Minardo Gollun Gonzalez Lopez wrote:
> I need a code, using Lua5.1.2 that allows me to load a Lua file and print the name of all the functions that have the document. Please any people that have an example or tutorial send It to me because I have not been able to make an example that loads lua and execute it correctly using the latest libraries.
> Saludos: Ing. Minardo G. González López.
execute lua dump_function.lua your_script.lua
file = ...
dofile( file )
for key, value in pair( _G )
if( isfunction( value ) ) then
print( key .."\n" )
It should do the stuff( I've not tested, but you get the idea )
10Tacle Studios Belgium / Elsewhere Entertainment