add LuaHelpers::AbsIndex
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user