VC6 doesn't seem to want to accept default parameter value for templated functions like this. Poor solution: just put in the default in the actual function call.

This commit is contained in:
Charles Lohr
2005-03-14 00:07:56 +00:00
parent a95cb42339
commit e8729a82d0
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -141,7 +141,7 @@ void LuaManager::SetGlobal( const CString &sName )
static int LuaPanic( lua_State *L )
{
CString sErr;
LuaHelpers::PopStack( sErr );
LuaHelpers::PopStack( sErr, NULL );
RageException::Throw( "%s", sErr.c_str() );
}
@@ -270,7 +270,7 @@ bool LuaManager::RunScript( const CString &sScript, const CString &sName, CStrin
if( ret )
{
LuaHelpers::PopStack( sError );
LuaHelpers::PopStack( sError, NULL );
return false;
}
}
@@ -280,7 +280,7 @@ bool LuaManager::RunScript( const CString &sScript, const CString &sName, CStrin
int ret = lua_pcall( L, 0, iReturnValues, 0 );
if( ret )
{
LuaHelpers::PopStack( sError );
LuaHelpers::PopStack( sError, NULL );
return false;
}
}