[Tarantool-patches] [PATCH 2.X 4/7] module api: luaL_register_module & luaL_register_type
Timur Safin
tsafin at tarantool.org
Thu Sep 24 20:00:17 MSK 2020
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
More information about the Tarantool-patches
mailing list