/// <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)); }
/// <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.IsValid) { return(meta); } meta = DynValue.NewTailCallReq(meta, args); return(meta); }