move CreateTableFromArrayB and ReadArrayFromTableB into LuaHelpers; L argument first, like Lua functions (it was only at the end because it was an optional parameter)

This commit is contained in:
Glenn Maynard
2005-06-16 05:37:31 +00:00
parent 8e6e0f182b
commit 8557623212
3 changed files with 12 additions and 11 deletions
+3 -3
View File
@@ -703,7 +703,7 @@ public:
vbSelOut[i] = false;
/* Create the vbSelectedOut table. */
LUA->CreateTableFromArrayB( vbSelOut, LUA->L );
LuaHelpers::CreateTableFromArrayB( LUA->L, vbSelOut );
ASSERT( lua_gettop(LUA->L) == 1 ); /* vbSelectedOut table */
/* Get the function to call from m_LuaTable. */
@@ -731,7 +731,7 @@ public:
lua_pop( LUA->L, 1 ); /* pop option table */
LUA->ReadArrayFromTableB( vbSelOut, LUA->L );
LuaHelpers::ReadArrayFromTableB( LUA->L, vbSelOut );
lua_pop( LUA->L, 1 ); /* pop vbSelectedOut table */
@@ -753,7 +753,7 @@ public:
vector<bool> vbSelectedCopy = vbSel;
/* Create the vbSelectedOut table. */
LUA->CreateTableFromArrayB( vbSelectedCopy, LUA->L );
LuaHelpers::CreateTableFromArrayB( LUA->L, vbSelectedCopy );
ASSERT( lua_gettop(LUA->L) == 1 ); /* vbSelectedOut table */
/* Get the function to call. */