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

Moved peek/poke to utility.jam

[SVN r12170]
This commit is contained in:
Dave Abrahams
2001-12-29 00:01:53 +00:00
parent 2b2b8d0160
commit da95ae4219

View File

@@ -108,22 +108,3 @@ rule import ( module-name : rules-opt * : rename-opt * )
IMPORT $(module-name) : $(source-names) : [ CALLER_MODULE ] : $(target-names) ;
}
# Returns the module-local value of a variable.
rule peek ( module-name variable )
{
module $(module-name)
{
return $($(variable)) ;
}
}
local rule __test__ ( )
{
import assert ;
module modules.__test__
{
module local foo = bar ;
}
assert.result bar : peek modules.__test__ foo ;
}