From 08eea971d2d3170ca357935644483dc520f46173 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 1 Dec 2016 13:19:49 +0200 Subject: Organize tests/, factor common testscript fragments --- build2/functions-builtin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build2/functions-builtin.cxx') diff --git a/build2/functions-builtin.cxx b/build2/functions-builtin.cxx index 0fe6135..df3554d 100644 --- a/build2/functions-builtin.cxx +++ b/build2/functions-builtin.cxx @@ -17,7 +17,7 @@ namespace build2 f["type"] = [](value* v) {return v->type != nullptr ? v->type->name : "";}; f["null"] = [](value* v) {return v->null;}; - f["empty"] = [](value v) {return v.empty ();}; + f["empty"] = [](value* v) {return v->null || v->empty ();}; f["identity"] = [](value* v) {return move (*v);}; -- cgit v1.1