Exemplo n.º 1
0
        /// <summary>
        /// prepares a tail call request for the specified metamethod, or null if no metamethod is found.
        /// </summary>
        public DynValue GetMetamethodTailCall(DynValue value, string metamethod, params DynValue[] args)
        {
            DynValue meta = this.GetMetamethod(value, metamethod);

            if (meta == null)
            {
                return(null);
            }
            return(DynValue.NewTailCallReq(meta, args));
        }