Declaring hlua_gethlua() function to make it usable from hlua_fcn.c.
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 */
* - 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;