Fix VC8 macro redef warning. (more to come)

This commit is contained in:
Jason Felds
2006-07-18 03:56:37 +00:00
parent 4f8049377b
commit 366c3440d4
29 changed files with 84 additions and 83 deletions
+2 -2
View File
@@ -198,7 +198,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) < ARRAY_SIZE(g_iStackCounts) )
{
g_iStackCounts[g_iNumStackCounts] = lua_gettop(L);
}
@@ -211,7 +211,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) < ARRAY_SIZE(g_iStackCounts) )
{
ASSERT( g_iStackCounts[g_iNumStackCounts] == lua_gettop(L) );
}