From 5648dce61108e9c5059f390a1c9b28a68ce0b439 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Tue, 24 Nov 2009 09:40:16 +0100 Subject: Add ternary logic type maybe_bool. --- crawl-ref/source/stuff.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/stuff.h') 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 -- cgit v1.2.3-54-g00ecf