Reading all globals
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Reading all globals
- From: "Martin Swaine" <martin.swaine@...>
- Date: 2002年4月30日 15:12:36 +0100
How can I read out all the global variable names and their values with
the C API?
I understand lua_getglobals puts them onto the stack as a table and then
lua_gettable can be used to get the value of a named key, but I don't
know in advance the keys(variable names) that are being used.
Many thanks
Martin