From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 0B0451FD80 for ; Wed, 31 Jul 2019 11:39:11 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6dLBpvcZiaE0 for ; Wed, 31 Jul 2019 11:39:10 -0400 (EDT) Received: from smtp10.mail.ru (smtp10.mail.ru [94.100.181.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id BEFE31FBD1 for ; Wed, 31 Jul 2019 11:39:10 -0400 (EDT) Date: Wed, 31 Jul 2019 18:39:08 +0300 From: Konstantin Osipov Subject: [tarantool-patches] Re: [PATCH v2 1/2] lua: new function luaT_return_error() Message-ID: <20190731153908.GA8113@atlas> References: <20190731152324.4rraz2shvqnenaas@tkn_work_nb> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190731152324.4rraz2shvqnenaas@tkn_work_nb> Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: Alexander Turenko Cc: imeevma@tarantool.org, v.shpilevoy@tarantool.org, tarantool-patches@freelists.org * Alexander Turenko [19/07/31 18:37]: > > +/** > > + * Return nil as the first return value and an error as the > > + * second. The error is received using box_error_last(). > > + * > > + * @param L Lua stack. > > + */ > > +LUA_API int > > +luaT_return_error(lua_State *L); > > Maybe let the name be a bit more explicit, say, > luaT_push_conventional_error(struct lua_State *L)? Ugh. What is conventional? Conventions change. -- Konstantin Osipov, Moscow, Russia