[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Returning an anonymous table to C api
- From: frank.maltman@...
- Date: Mon, 26 May 2008 01:51:12 +0000
I have the following code:
local area = {
{
{ x = 0.0, y = 0.0, z = 0.0 },
{ x = 0.0, y = 0.0, z = 20.0 },
{ x = 20.0, y = 0.0, z = 20.0 },
{ x = 20.0, y = 0.0, z = 0.0 },
},
{
{ x = 0.0, y = 20.0, z = 0.0 },
{ x = 0.0, y = 20.0, z = 20.0 },
{ x = 20.0, y = 20.0, z = 20.0 },
{ x = 20.0, y = 20.0, z = 0.0 },
},
}
return {
["name"] = "example area",
["area"] = area,
}
When I load this with lua_load() and then do lua_pcall() on it,
there's nothing left on the stack and no error.
How do I access that anonymous table from the C api?