[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Getting Lua tables from C
- From: Ultron14@...
- Date: Wed, 18 Apr 2001 10:45:51 EDT
Hi,
I am able to pass a Lua property table back to script like this:
lua_newtable(state);
state->lua_pushstring("active"); state->lua_pushnumber(lastworld->active);
lua_settable(state,-3);
I have 2 questions:
1) How do I change the above to return just a table with just values, and not
a property/value table
2) how I GET the values from a table passed in (both indexed and with
properties)
Any help would be much appreciated!
Thanks,
Jules