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 4811C220D4 for ; Wed, 31 Jul 2019 15:34:00 -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 W54EeeONGZ1R for ; Wed, 31 Jul 2019 15:34:00 -0400 (EDT) Received: from smtp55.i.mail.ru (smtp55.i.mail.ru [217.69.128.35]) (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 072B920C9B for ; Wed, 31 Jul 2019 15:33:59 -0400 (EDT) Date: Wed, 31 Jul 2019 22:33:57 +0300 From: Konstantin Osipov Subject: [tarantool-patches] Re: [PATCH v2 1/2] lua: new function luaT_return_error() Message-ID: <20190731193357.GB31997@atlas> References: <20190731152324.4rraz2shvqnenaas@tkn_work_nb> <5abcd784-f790-5675-fae0-1620e264a221@tarantool.org> <4927f71a-2141-4412-6298-0c48b28b25ec@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: Vladislav Shpilevoy Cc: Imeev Mergen , tarantool-patches@freelists.org, Alexander Turenko * Vladislav Shpilevoy [19/07/31 20:01]: > >>>> +LUA_API int > >>>> +luaT_return_error(lua_State *L); > For me 'return' was ok, but seems it is not ok for Kostja and > Alexander. Lets wait. I'm OK with it. luaT_return_nil_and_error is also OK. luaT_push_nil_and_error too. luaT_return_error is a bit ambiguous, and like names which are self-explanatory, but it's fine. -- Konstantin Osipov, Moscow, Russia