2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 00:12:11 +00:00

Fixed bug in assert.nonempty-variable

[SVN r13587]
This commit is contained in:
Dave Abrahams
2002-04-30 14:34:45 +00:00
parent 7fc5e16917
commit 5d20da9769

View File

@@ -39,8 +39,9 @@ rule result ( expected * : rule-name args * : * )
# assert that the given variable is nonempty.
rule nonempty-variable ( name )
{
local empty ;
if $($(variable)) = $(empty)
local value = [ modules.peek [ CALLER_MODULE ] : $(name) ] ;
if ! $(value)-is-nonempty
{
error-skip-frames 3 assertion failure: expecting non-empty variable $(variable) ;
}