diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-21 10:26:44 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-21 10:54:13 +0200 |
commit | fccc2460c9eb17ecb89cd02e9fac580a32ec794b (patch) | |
tree | 87e6bf8a924fd69147c1f86641a9b730cea392c3 /crawl-ref/source/clua.h | |
parent | 6b4885b07d0a5228d7dc20cbbb210a1a168bc8da (diff) | |
download | crawl-ref-fccc2460c9eb17ecb89cd02e9fac580a32ec794b.tar.gz crawl-ref-fccc2460c9eb17ecb89cd02e9fac580a32ec794b.zip |
Move utility functions from clua.cc to cluautil.cc.
cluautil.cc should eventually contain all of the functions
for passing objects from and to lua, at least the shared
ones.
Also cut down on clua.cc include list.
Diffstat (limited to 'crawl-ref/source/clua.h')
-rw-r--r-- | crawl-ref/source/clua.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/crawl-ref/source/clua.h b/crawl-ref/source/clua.h index bc723c0d90..ed35813dd5 100644 --- a/crawl-ref/source/clua.h +++ b/crawl-ref/source/clua.h @@ -19,9 +19,6 @@ extern "C" { #include <map> #include <set> -#include "libutil.h" -#include "externs.h" - #ifndef CLUA_MAX_MEMORY_USE #define CLUA_MAX_MEMORY_USE (6 * 1024) #endif @@ -292,14 +289,6 @@ static int lua_object_gc(lua_State *ls) std::string quote_lua_string(const std::string &s); -class map_def; -class dgn_event; -void clua_push_map(lua_State *ls, map_def *map); -void clua_push_coord(lua_State *ls, const coord_def &c); -void clua_push_dgn_event(lua_State *ls, const dgn_event *devent); - -void lua_push_items(lua_State *ls, int link); - template <class T> T *clua_new_userdata( lua_State *ls, const char *mt) { @@ -309,18 +298,10 @@ template <class T> T *clua_new_userdata( return static_cast<T*>( udata ); } -void push_monster(lua_State *ls, monsters *mons); - void clua_register_metatable(lua_State *ls, const char *tn, const luaL_reg *lr, int (*gcfn)(lua_State *ls) = NULL); void print_clua_stack(); -#define MAP_METATABLE "dgn.mtmap" -#define DEVENT_METATABLE "dgn.devent" -#define MAPMARK_METATABLE "dgn.mapmark" -#define MAPGRD_METATABLE "dgn.mapgrd" -#define MAPGRD_COL_METATABLE "dgn.mapgrdcol" - #endif |