This table will be accessed very often, so use the terse name "P", for eg. File="@P.File".

This commit is contained in:
Glenn Maynard
2005-10-29 01:35:53 +00:00
parent 938bfeb7b0
commit 4cee7a4045
+2 -2
View File
@@ -106,13 +106,13 @@ retry:
static void PushParamsTable( Lua *L )
{
lua_pushstring( L, "Params" );
lua_pushstring( L, "P" );
lua_rawget( L, LUA_GLOBALSINDEX );
if( lua_isnil(L, -1) )
{
lua_pop( L, 1 );
lua_newtable( L );
lua_pushstring( L, "Params" );
lua_pushstring( L, "P" );
lua_pushvalue( L, -2 );
lua_rawset( L, LUA_GLOBALSINDEX );
}