From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp54.i.mail.ru (smtp54.i.mail.ru [217.69.128.34]) (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 5CEF6469719 for ; Thu, 24 Sep 2020 20:01:01 +0300 (MSK) From: Timur Safin Date: Thu, 24 Sep 2020 20:00:17 +0300 Message-Id: <96922008cb146eaa04cb727472eda3e71f2e7bc8.1600955781.git.tsafin@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 2.X 4/7] 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/exports.h | 2 ++ src/lua/utils.h | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/exports.h b/src/exports.h index 20070b240..1c16e88b2 100644 --- a/src/exports.h +++ b/src/exports.h @@ -386,6 +386,8 @@ EXPORT(luaL_pushresult) EXPORT(luaL_pushuint64) EXPORT(luaL_ref) EXPORT(luaL_register) +EXPORT(luaL_register_module) +EXPORT(luaL_register_type) EXPORT(luaL_setcdatagc) EXPORT(luaL_setfuncs) EXPORT(luaL_setmetatable) diff --git a/src/lua/utils.h b/src/lua/utils.h index 7639cd64a..9b1fe7e57 100644 --- a/src/lua/utils.h +++ b/src/lua/utils.h @@ -78,6 +78,8 @@ luaL_pushuuid(struct lua_State *L); /** \cond public */ +struct luaL_Reg; + /** * @brief Checks whether a value on the Lua stack is a cdata. * @@ -442,6 +444,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); @@ -451,8 +455,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