public static void luaL_initlibs(IntPtr luaState) { luaL_openlibs(luaState); #if XLUA LuaIndexes.LUA_REGISTRYINDEX = xlua_get_registry_index(); LuaLib.DoString(luaState, env_script); #endif }