From 27124f0ea2ba98a89be59dfa7b0fcde9a0f3a76f Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 9 Jan 2003 16:20:58 +0000 Subject: [PATCH] Add assertions [SVN r16838] --- new/generators.jam | 8 +++++--- v2/build/generators.jam | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/new/generators.jam b/new/generators.jam index fcdccb52a..433eb3d35 100644 --- a/new/generators.jam +++ b/new/generators.jam @@ -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) ; } diff --git a/v2/build/generators.jam b/v2/build/generators.jam index fcdccb52a..433eb3d35 100644 --- a/v2/build/generators.jam +++ b/v2/build/generators.jam @@ -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) ; }