|
Hi all, I'm a Lua newbie and I'm trying to integrate Lua scripting in one of my C++ applications. The scripting I require is very simple: the program must load a script file and then run a specific functions which should be declared inside it. My problem is that I don't know how to get the list of the functions declared inside the script file I load (maybe with the number of arguments they take...) . CINT & UnderC provide some methods to do it.... in Lua I tried to explore the table at index LUA_GLOBALSINDEX, but I didn't find the functions declared in the lua scripts loaded... how can I do it ? If you need, I attach the CPP source file and the LUA script file I worked on. Thank you very much indeed, Francesco Montorsi
Attachment:
script3.lua
Description: Binary data
Attachment:
try.cpp
Description: Binary data