add LuaHelpers::AbsIndex

This commit is contained in:
Glenn Maynard
2006-09-26 01:28:10 +00:00
parent 44170f9fb3
commit 78c8e11290
+1
View File
@@ -128,6 +128,7 @@ namespace LuaHelpers
}
int TypeError( Lua *L, int narg, const char *tname );
int AbsIndex( Lua *L, int i ) { if( i > 0 || i <= LUA_REGISTRYINDEX ) return i; return lua_gettop( L ) + i + 1; }
}