Esempio n. 1
0
        internal void PushOnto(IntPtr state)
        {
            if (state != Lua.MainState && LuaApi.GetMainState(state) != Lua.MainState)
            {
                throw new ArgumentException("Reference cannot be pushed onto the given Lua environment.", nameof(state));
            }

            LuaApi.RawGetI(state, LuaApi.RegistryIndex, _referenceId);
        }