From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp15.mail.ru (smtp15.mail.ru [94.100.176.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 32C2E44643B for ; Fri, 25 Sep 2020 00:01:16 +0300 (MSK) From: Timur Safin Date: Fri, 25 Sep 2020 00:00:36 +0300 Message-Id: <4748c6a098ee7367ad8caac8e3d188af6bee97fa.1600955796.git.tsafin@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 1.10 4/9] module api: luaL_register_module & luaL_register_type List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: v.shpilevoy@tarantool.org, alexander.turenko@tarantool.org Cc: tarantool-patches@dev.tarantool.org Exporting `luaL_register_module` & `luaL_register_type` functions as they needed for external merger Part of #5273 --- src/lua/utils.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lua/utils.h b/src/lua/utils.h index 363d5e908..a818e5eee 100644 --- a/src/lua/utils.h +++ b/src/lua/utils.h @@ -69,6 +69,8 @@ extern struct ibuf *tarantool_lua_ibuf; /** \cond public */ +struct luaL_Reg; + /** * @brief Checks whether a value on the Lua stack is a cdata. * @@ -410,6 +412,8 @@ luaL_checkfield(struct lua_State *L, struct luaL_serializer *cfg, int idx, luaL_convertfield(L, cfg, idx, field); } +/** \cond public */ + void luaL_register_type(struct lua_State *L, const char *type_name, const struct luaL_Reg *methods); @@ -419,8 +423,6 @@ void luaL_register_module(struct lua_State *L, const char *modname, const struct luaL_Reg *methods); -/** \cond public */ - /** * Push uint64_t onto the stack * -- 2.20.1