diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-09-03 19:18:55 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-09-03 19:18:55 +0400 |
commit | 3215a8457fcedcbc400a9447d06c7f54b0af35a4 (patch) | |
tree | e7368d1c6e2bc98619a78b9551ee0116ea269875 /src/lua/lua_common.h | |
parent | c9d98a8fc24f76d979ad479eff2fa66b31703832 (diff) | |
download | rspamd-3215a8457fcedcbc400a9447d06c7f54b0af35a4.tar.gz rspamd-3215a8457fcedcbc400a9447d06c7f54b0af35a4.zip |
* Make lua api object oriented
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r-- | src/lua/lua_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h index bcb69a009..886960ab3 100644 --- a/src/lua/lua_common.h +++ b/src/lua/lua_common.h @@ -12,6 +12,8 @@ #define LUA_FUNCTION_DEF(class, name) static int lua_##class##_##name(lua_State *L) #define LUA_INTERFACE_DEF(class, name) { #name, lua_##class##_##name } +extern const luaL_reg null_reg[]; + void lua_newclass (lua_State *L, const char *classname, const struct luaL_reg *func); void lua_setclass (lua_State *L, const char *classname, int objidx); void lua_set_table_index (lua_State *L, const char *index, const char *value); |