summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_libs.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-21 10:26:44 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-21 10:54:13 +0200
commitfccc2460c9eb17ecb89cd02e9fac580a32ec794b (patch)
tree87e6bf8a924fd69147c1f86641a9b730cea392c3 /crawl-ref/source/l_libs.h
parent6b4885b07d0a5228d7dc20cbbb210a1a168bc8da (diff)
downloadcrawl-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/l_libs.h')
-rw-r--r--crawl-ref/source/l_libs.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/crawl-ref/source/l_libs.h b/crawl-ref/source/l_libs.h
index b274ee269d..705ff65aae 100644
--- a/crawl-ref/source/l_libs.h
+++ b/crawl-ref/source/l_libs.h
@@ -24,8 +24,18 @@ void cluaopen_you(lua_State *ls);
void cluaopen_globals(lua_State *ls);
/*
+ * (Shared) metatable names.
+ */
+
+#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"
+
+/*
* Libraries and loaders for dlua, accessed from init_dungeon_lua().
- * TODO: Move these to dluaopen_*.
+ * TODO: Rename these to dluaopen_*.
*/
extern const struct luaL_reg debug_dlib[];
@@ -55,6 +65,7 @@ void dluaopen_you(lua_State *ls);
/*
* Macros for processing object arguments.
+ * TODO: Collect these in cluautil.{h,cc}.
*/
#define GETCOORD(c, p1, p2, boundfn) \
coord_def c; \