lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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?