aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/functions-bool.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/functions-bool.cxx')
-rw-r--r--libbuild2/functions-bool.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbuild2/functions-bool.cxx b/libbuild2/functions-bool.cxx
index 1ae89d2..bb2fd3f 100644
--- a/libbuild2/functions-bool.cxx
+++ b/libbuild2/functions-bool.cxx
@@ -15,6 +15,12 @@ namespace build2
// $string(<bool>)
//
+ // Convert a boolean value to a string literal `true` or `false`.
+ //
+
+ // Note that we don't handle NULL values for this type since it has no
+ // empty representation.
+ //
f["string"] += [](bool b) {return b ? "true" : "false";};
}
}