From 4168cda2363f3d796d0b9922852e249aac3131ba Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 4 Dec 2020 08:39:35 +0200 Subject: Mark Buildfile functions as pure or impure --- libbuild2/functions-process-path.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libbuild2/functions-process-path.cxx') diff --git a/libbuild2/functions-process-path.cxx b/libbuild2/functions-process-path.cxx index 86d4445..199ad0d 100644 --- a/libbuild2/functions-process-path.cxx +++ b/libbuild2/functions-process-path.cxx @@ -16,8 +16,8 @@ namespace build2 // As discussed in value_traits, we always have recall. // - f["recall"] = &process_path::recall; - f["effect"] = [](process_path p) + f["recall"] += &process_path::recall; + f["effect"] += [](process_path p) { return move (p.effect.empty () ? p.recall : p.effect); }; @@ -26,8 +26,8 @@ namespace build2 { function_family f (m, "process_path_ex"); - f["name"] = &process_path_ex::name; - f["checksum"] = &process_path_ex::checksum; + f["name"] += &process_path_ex::name; + f["checksum"] += &process_path_ex::checksum; } } } -- cgit v1.1