ARRAYSIZE -> ARRAYLEN

This commit is contained in:
Glenn Maynard
2006-09-13 03:11:38 +00:00
parent 9fb0d09f35
commit e206261b80
21 changed files with 28 additions and 28 deletions
+2 -2
View File
@@ -208,7 +208,7 @@ static int g_iNumStackCounts = 0;
Lua *LuaManager::Get()
{
m_pLock->Lock();
if( size_t(g_iNumStackCounts) < ARRAYSIZE(g_iStackCounts) )
if( size_t(g_iNumStackCounts) < ARRAYLEN(g_iStackCounts) )
{
g_iStackCounts[g_iNumStackCounts] = lua_gettop(L);
}
@@ -221,7 +221,7 @@ void LuaManager::Release( Lua *&p )
ASSERT( p == L );
ASSERT( g_iNumStackCounts != 0 );
--g_iNumStackCounts;
if( size_t(g_iNumStackCounts) < ARRAYSIZE(g_iStackCounts) )
if( size_t(g_iNumStackCounts) < ARRAYLEN(g_iStackCounts) )
{
ASSERT( g_iStackCounts[g_iNumStackCounts] == lua_gettop(L) );
}