diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-20 16:06:40 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-20 16:06:40 +0200 |
commit | 7c97899cefb5ed1dd3547b9800f96b5a4cb24bf6 (patch) | |
tree | d5919fca6288501561cafd6332ad2a72fb1183f4 /crawl-ref/source/l_libs.h | |
parent | fb872b6780842d10abf30d9fc1cff7273039b765 (diff) | |
download | crawl-ref-7c97899cefb5ed1dd3547b9800f96b5a4cb24bf6.tar.gz crawl-ref-7c97899cefb5ed1dd3547b9800f96b5a4cb24bf6.zip |
Move clua crawl_lib from clua to l_crawl.cc.
To avoid name clashes, rename dlua libs from *_lib to *_dlib.
Diffstat (limited to 'crawl-ref/source/l_libs.h')
-rw-r--r-- | crawl-ref/source/l_libs.h | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/crawl-ref/source/l_libs.h b/crawl-ref/source/l_libs.h index aca91d8699..663b378832 100644 --- a/crawl-ref/source/l_libs.h +++ b/crawl-ref/source/l_libs.h @@ -9,23 +9,29 @@ #include "clua.h" /* + * Loaders for clua. + */ + +void cluaopen_crawl(lua_State *ls); + + +/* * Libraries and loaders, accessed from init_dungeon_lua(). */ -extern const struct luaL_reg crawl_lib[]; -extern const struct luaL_reg debug_lib[]; -extern const struct luaL_reg dgn_lib[]; -extern const struct luaL_reg dgn_build_lib[]; -extern const struct luaL_reg dgn_event_lib[]; -extern const struct luaL_reg dgn_grid_lib[]; -extern const struct luaL_reg dgn_item_lib[]; -extern const struct luaL_reg dgn_level_lib[]; -extern const struct luaL_reg dgn_mons_lib[]; -extern const struct luaL_reg dgn_tile_lib[]; -extern const struct luaL_reg file_lib[]; -extern const struct luaL_reg los_lib[]; -extern const struct luaL_reg mapmarker_lib[]; -extern const struct luaL_reg you_lib[]; +extern const struct luaL_reg debug_dlib[]; +extern const struct luaL_reg dgn_dlib[]; +extern const struct luaL_reg dgn_build_dlib[]; +extern const struct luaL_reg dgn_event_dlib[]; +extern const struct luaL_reg dgn_grid_dlib[]; +extern const struct luaL_reg dgn_item_dlib[]; +extern const struct luaL_reg dgn_level_dlib[]; +extern const struct luaL_reg dgn_mons_dlib[]; +extern const struct luaL_reg dgn_tile_dlib[]; +extern const struct luaL_reg file_dlib[]; +extern const struct luaL_reg los_dlib[]; +extern const struct luaL_reg mapmarker_dlib[]; +extern const struct luaL_reg you_dlib[]; void luaopen_dgnevent(lua_State *ls); void luaopen_mapmarker(lua_State *ls); @@ -34,6 +40,8 @@ void luaopen_ray(lua_State *ls); void register_monslist(lua_State *ls); void register_itemlist(lua_State *ls); void register_builder_funcs(lua_State *ls); + +void dluaopen_crawl(lua_State *ls); /* * Macros for processing object arguments. |