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

Add assertions

[SVN r16838]
This commit is contained in:
Dave Abrahams
2003-01-09 16:20:58 +00:00
parent 783bd9f26a
commit 27124f0ea2
2 changed files with 10 additions and 6 deletions

View File

@@ -948,11 +948,13 @@ rule construct ( project name ? : target-type multiple ? : properties * : source
local result2 ;
for local t in $(result)
{
local type = [ $(t).type ] ;
local type = [ $(t).type ] ;
assert.nonempty-variable type ;
assert.nonempty-variable target-type ;
if $(type) = $(target-type) || [ type.is-derived $(type) $(target-type) ]
{
{
result2 += $(t) ;
}
}
}
return $(result2) ;
}

View File

@@ -948,11 +948,13 @@ rule construct ( project name ? : target-type multiple ? : properties * : source
local result2 ;
for local t in $(result)
{
local type = [ $(t).type ] ;
local type = [ $(t).type ] ;
assert.nonempty-variable type ;
assert.nonempty-variable target-type ;
if $(type) = $(target-type) || [ type.is-derived $(type) $(target-type) ]
{
{
result2 += $(t) ;
}
}
}
return $(result2) ;
}