summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stuff.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-24 09:40:16 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-24 11:05:13 +0100
commit5648dce61108e9c5059f390a1c9b28a68ce0b439 (patch)
tree9343bf0b18644cd9e603ee23340f4744320f8979 /crawl-ref/source/stuff.h
parentf8bbfc037a9f75e06a51fc9f1fc48c2f3d9572e1 (diff)
downloadcrawl-ref-5648dce61108e9c5059f390a1c9b28a68ce0b439.tar.gz
crawl-ref-5648dce61108e9c5059f390a1c9b28a68ce0b439.zip
Add ternary logic type maybe_bool.
Diffstat (limited to 'crawl-ref/source/stuff.h')
-rw-r--r--crawl-ref/source/stuff.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/stuff.h b/crawl-ref/source/stuff.h
index 11fea7beed..5bfcebdcd2 100644
--- a/crawl-ref/source/stuff.h
+++ b/crawl-ref/source/stuff.h
@@ -97,4 +97,8 @@ int integer_sqrt(int value);
int random_rod_subtype();
+maybe_bool frombool(bool b);
+bool tobool(maybe_bool mb, bool def);
+bool tobool(maybe_bool mb);
+
#endif