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

Add assertions

[SVN r16838]
This commit is contained in:
Dave Abrahams
2003-01-09 16:20:58 +00:00
parent 4bfdbb5d43
commit bc09ba073f

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) ;
}