[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How to access array inside a table from C code ?
- From: "Michael Newberry" <mnewberry@...>
- Date: Mon, 23 Feb 2004 21:44:59 -0700
My first attempt was using lua_next() but I failed to ever figure out how to
setup the stack properly. I don't think that end of things is very well
----- Original Message -----
From: "Brian Hook" <email@example.com>
To: "Lua list" <firstname.lastname@example.org>
Sent: Monday, February 23, 2004 9:38 PM
Subject: Re: How to access array inside a table from C code ?
> I think I am starting to understand something of what is going on
> here. If the table only has values and no "n", I would use
> table.getn() inside a script to get the count limit. But is there a
> in C callable equivalent?
I'm not aware of one, but I'm a relative newbie. You could instead
just iterate over the table with lua_next(), or guarantee that "n" is