public static int GetFuncRef(this IntPtr L) { return(Lua.luaL_ref(L, (int)LuaInnerIndex.LUA_REGISTRYINDEX)); }