diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-21 11:43:44 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-21 11:43:44 +0200 |
commit | 0b68859a8d428b2af44828c716f80e46450b1b08 (patch) | |
tree | 0f3df2b8cd4464d45ae447b42a9cc716488cb44c /crawl-ref/source/cluautil.h | |
parent | 7974b1cb0ff0b1d4e20550a3bc731b5c7df7ed10 (diff) | |
download | crawl-ref-0b68859a8d428b2af44828c716f80e46450b1b08.tar.gz crawl-ref-0b68859a8d428b2af44828c716f80e46450b1b08.zip |
Move clua_register_metatable to cluautil.
Diffstat (limited to 'crawl-ref/source/cluautil.h')
-rw-r--r-- | crawl-ref/source/cluautil.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/crawl-ref/source/cluautil.h b/crawl-ref/source/cluautil.h index 1af4d76485..02e5180d7c 100644 --- a/crawl-ref/source/cluautil.h +++ b/crawl-ref/source/cluautil.h @@ -6,21 +6,31 @@ #ifndef CLUAUTIL_H #define CLUAUTIL_H +extern "C" { +#include <lua.h> +#include <lauxlib.h> +#include <lualib.h> +} + /* * Function definitions. */ #define LUAFN(name) static int name(lua_State *ls) +// FIXME: remove one of these. void luaopen_setmeta(lua_State *ls, const char *global, const luaL_reg *lua_lib, const char *meta); +void clua_register_metatable(lua_State *ls, const char *tn, + const luaL_reg *lr, + int (*gcfn)(lua_State *ls) = NULL); + /* * Passing objects from and to Lua. */ -struct lua_State; struct activity_interrupt_data; int push_activity_interrupt(lua_State *ls, activity_interrupt_data *t); |