From 29f8159583d2b02efa2afeaa58082f57222c943d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 3 Dec 2015 14:37:22 +0200 Subject: Add ability for module to remember that it is unconfigured A module can set and then check the config.*.configured special variable to false. --- build/variable | 2 ++ 1 file changed, 2 insertions(+) (limited to 'build/variable') diff --git a/build/variable b/build/variable index 5d0b175..51d748d 100644 --- a/build/variable +++ b/build/variable @@ -119,6 +119,8 @@ namespace build bool empty () const {return state_ == state_type::empty;} explicit operator bool () const {return !null ();} + bool operator== (std::nullptr_t) const {return null ();} + bool operator!= (std::nullptr_t) const {return !null ();} // Raw data read interface. // -- cgit v1.1