aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/function.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-03-17 07:33:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-03-17 07:47:17 +0200
commitbab021a6203127f38fb89c61cc41deb3e0abbe62 (patch)
tree868ddce415b985636baed5dd566ec4bd11f67c99 /libbuild2/function.cxx
parent962f83b1e551cc683f1052d32cb79b969e65af5f (diff)
Add $defined(<variable>) function
Diffstat (limited to 'libbuild2/function.cxx')
-rw-r--r--libbuild2/function.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/libbuild2/function.cxx b/libbuild2/function.cxx
index 79e7a81..25dacf9 100644
--- a/libbuild2/function.cxx
+++ b/libbuild2/function.cxx
@@ -117,13 +117,8 @@ namespace build2
// Overload resolution.
//
- // Ours is pretty simple: we sort all the overloads into three ranks:
- //
- // 0 -- all the arguments match exactly (perfect match)
- // 1 -- one or more arguments match via the derived-to-base conversion
- // 2 -- one or more arguments match via the reversal to untyped
- //
- // More than one match of the same rank is ambiguous.
+ // See the overall function machinery description for the ranking
+ // semantics.
//
auto ip (map_.equal_range (name));