diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-06 18:12:33 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-06 18:12:33 +0000 |
commit | 2f55351fca3143ed85ac9ebaa4590c5053ff014c (patch) | |
tree | 2aeddd89a781a663a456d25a69d84bb5d6d869e3 /src/lua/lua_common.h | |
parent | f037213749e6c3d2bf35318b100c5e4767cc69f8 (diff) | |
download | rspamd-2f55351fca3143ed85ac9ebaa4590c5053ff014c.tar.gz rspamd-2f55351fca3143ed85ac9ebaa4590c5053ff014c.zip |
[Rework] Move maps code to a separate lua unit
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r-- | src/lua/lua_common.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h index 8629d6366..d39f42793 100644 --- a/src/lua/lua_common.h +++ b/src/lua/lua_common.h @@ -43,6 +43,8 @@ luaL_register (lua_State *L, const gchar *name, const struct luaL_reg *methods) /* Interface definitions */ #define LUA_FUNCTION_DEF(class, name) static gint lua_ ## class ## _ ## name ( \ lua_State * L) +#define LUA_PUBLIC_FUNCTION_DEF(class, name) gint lua_ ## class ## _ ## name ( \ + lua_State * L) #define LUA_INTERFACE_DEF(class, name) { # name, lua_ ## class ## _ ## name } extern const luaL_reg null_reg[]; @@ -80,7 +82,6 @@ struct rspamd_lua_regexp { gint re_flags; }; - /* Common utility functions */ /** |