summaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-08-14 12:15:55 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-08-14 12:15:55 +0100
commit8f4a6729d18ba775fdb7861ef0239f312d705f4a (patch)
tree30374b87f41d0dce8a111b7bd3c16ceb3a8a2253 /src/lua
parent5ab7613c28aeda1c398a9dad447d0e5b5dedb8fe (diff)
downloadrspamd-8f4a6729d18ba775fdb7861ef0239f312d705f4a.tar.gz
rspamd-8f4a6729d18ba775fdb7861ef0239f312d705f4a.zip
[Rework] Use more c++ in cfg_utils
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h
index bf887e301..32b61dcf8 100644
--- a/src/lua/lua_common.h
+++ b/src/lua/lua_common.h
@@ -97,7 +97,7 @@ static inline int lua_absindex(lua_State *L, int i)
extern const luaL_reg null_reg[];
-#define RSPAMD_LUA_API_VERSION 12
+#define RSPAMD_LUA_CFG_STATE(cfg) ((lua_State *) ((cfg)->lua_state))
/**
* Lua IP address structure
*/