summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/clua.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-05-05 22:04:52 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-05-05 22:05:29 +0200
commitddab1927f6fa23495dc23af7860f2e0d01010978 (patch)
tree8fc5d268f55e09cf4a232a67205fa1762eea5cf0 /crawl-ref/source/clua.cc
parent3495f4ab936ad025bd2d9c4ab14c9a0119653322 (diff)
downloadcrawl-ref-ddab1927f6fa23495dc23af7860f2e0d01010978.tar.gz
crawl-ref-ddab1927f6fa23495dc23af7860f2e0d01010978.zip
Port to OpenSolaris (Dyson/Illumos).
This might be portability for portability sake (Solaris is so dead), but come on, we can't disappoint Igor Pashev by porting our stuff later than several hours after the first installable build of Dyson is released :)
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r--crawl-ref/source/clua.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc
index bde03f3a04..4656c6f2f2 100644
--- a/crawl-ref/source/clua.cc
+++ b/crawl-ref/source/clua.cc
@@ -493,7 +493,7 @@ maybe_bool CLua::callmbooleanfn(const char *fn, const char *params,
error.clear();
lua_State *ls = state();
if (!ls)
- return B_MAYBE;
+ return MB_MAYBE;
int stacktop = lua_gettop(ls);
@@ -501,12 +501,12 @@ maybe_bool CLua::callmbooleanfn(const char *fn, const char *params,
if (!lua_isfunction(ls, -1))
{
lua_pop(ls, 1);
- CL_RESETSTACK_RETURN(ls, stacktop, B_MAYBE);
+ CL_RESETSTACK_RETURN(ls, stacktop, MB_MAYBE);
}
bool ret = calltopfn(ls, params, args, 1);
if (!ret)
- CL_RESETSTACK_RETURN(ls, stacktop, B_MAYBE);
+ CL_RESETSTACK_RETURN(ls, stacktop, MB_MAYBE);
maybe_bool r = frombool(lua_toboolean(ls, -1));
CL_RESETSTACK_RETURN(ls, stacktop, r);