[Tarantool-patches] [PATCH 1.10 4/9] module api: luaL_register_module & luaL_register_type
Timur Safin
tsafin at tarantool.org
Fri Sep 25 00:00:36 MSK 2020
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
More information about the Tarantool-patches
mailing list