[Tarantool-patches] [PATCH 1.10 08/16] WIP: refactoring: add API_EXPORT to lua/tuple functions

Alexander Turenko alexander.turenko at tarantool.org
Wed Sep 23 04:40:21 MSK 2020


The reason is unification of declarations. It is the rule of thumb to
use API_EXPORT with module API functions.

Part of #5273

(cherry picked from commit 4a95a64520b81ae7c61982801b7aab7f5724e964)
---
 src/box/lua/tuple.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/box/lua/tuple.h b/src/box/lua/tuple.h
index fcb7a9d87..2aed7a811 100644
--- a/src/box/lua/tuple.h
+++ b/src/box/lua/tuple.h
@@ -31,6 +31,7 @@
  * SUCH DAMAGE.
  */
 #include <stddef.h>
+#include "trivia/util.h"
 
 #if defined(__cplusplus)
 extern "C" {
@@ -53,7 +54,7 @@ typedef struct tuple_format box_tuple_format_t;
  * @sa luaT_istuple
  * @throws on OOM
  */
-void
+API_EXPORT void
 luaT_pushtuple(struct lua_State *L, box_tuple_t *tuple);
 
 /**
@@ -64,7 +65,7 @@ luaT_pushtuple(struct lua_State *L, box_tuple_t *tuple);
  * @retval non-NULL argument is tuple
  * @retval NULL argument is not tuple
  */
-box_tuple_t *
+API_EXPORT box_tuple_t *
 luaT_istuple(struct lua_State *L, int idx);
 
 /**
-- 
2.25.0



More information about the Tarantool-patches mailing list