Re: Passing arrays from C++ to LUA
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Passing arrays from C++ to LUA
- From: "John Calsbeek" <nexuapex@...>
- Date: 2007年8月27日 09:00:01 -0500
After creating the table with lua_newtable, for each item in the array you'd need to push it with lua_pushinteger and add it to the table with lua_rawseti(L, -2, idx).