diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-30 13:07:35 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-01 21:45:23 +0100 |
commit | 972124395af10024e5abc17878f92fde999e4c64 (patch) | |
tree | fc46128e44cb0f28c645f9450b5cb627793413eb /crawl-ref/source/l_los.cc | |
parent | 2f84398d831629e40b607abdcebf88290f9007af (diff) | |
download | crawl-ref-972124395af10024e5abc17878f92fde999e4c64.tar.gz crawl-ref-972124395af10024e5abc17878f92fde999e4c64.zip |
Disable l_los.cc.
Disabling the LOS lua bindings while ray.h changes.
Diffstat (limited to 'crawl-ref/source/l_los.cc')
-rw-r--r-- | crawl-ref/source/l_los.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/l_los.cc b/crawl-ref/source/l_los.cc index 40a5c6a5f1..5e5d73b168 100644 --- a/crawl-ref/source/l_los.cc +++ b/crawl-ref/source/l_los.cc @@ -14,6 +14,8 @@ #include "ray.h" #include "stuff.h" +#if 0 + #define RAY_METATABLE "dgn.ray" void lua_push_ray(lua_State *ls, ray_def *ray) @@ -43,12 +45,17 @@ LUAFN(los_cell_see_cell) PLUARET(number, cell_see_cell(p, q)); } +#endif + const struct luaL_reg los_dlib[] = { +#if 0 { "findray", los_find_ray }, { "cell_see_cell", los_cell_see_cell }, +#endif { NULL, NULL } }; +#if 0 #define RAY(ls, n, var) \ ray_def *var = *(ray_def **) luaL_checkudata(ls, n, RAY_METATABLE) @@ -99,8 +106,11 @@ static const struct luaL_reg ray_dlib[] = { "pos", ray_pos }, { NULL, NULL } }; +#endif void luaopen_ray(lua_State *ls) { +#if 0 clua_register_metatable(ls, RAY_METATABLE, ray_dlib, lua_object_gc<ray_def>); +#endif } |