]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: hlua: declare hlua_gethlua() function
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 4 May 2023 11:59:48 +0000 (13:59 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 5 May 2023 14:28:32 +0000 (16:28 +0200)
Declaring hlua_gethlua() function to make it usable from hlua_fcn.c.

include/haproxy/hlua.h
src/hlua.c

index 52eed06eb75b2b38891bb00222575ff7e9d96aa3..2031e5d21a8e8868bcdc373356f3d875cb8334ac 100644 (file)
@@ -59,6 +59,7 @@ const char *hlua_show_current_location(const char *pfx);
 int hlua_ref(lua_State *L);
 void hlua_pushref(lua_State *L, int ref);
 void hlua_unref(lua_State *L, int ref);
+struct hlua *hlua_gethlua(lua_State *L);
 
 #else /* USE_LUA */
 
index 2c68d4fbc4adfe7ec774321c6133d3534f43a1d4..98ee44170a0aaea33d1a0697b1e173178862be96 100644 (file)
@@ -1294,7 +1294,7 @@ __LJMP int hlua_lua2arg_check(lua_State *L, int first, struct arg *argp,
  *  - hlua_gethlua : return the hlua context associated with an lua_State.
  *  - hlua_sethlua : create the association between hlua context and lua_state.
  */
-static inline struct hlua *hlua_gethlua(lua_State *L)
+inline struct hlua *hlua_gethlua(lua_State *L)
 {
        struct hlua **hlua = lua_getextraspace(L);
        return *hlua;