From 7b9c113d52bbcecf45c9407e4ee30ee559418cb2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 22 Sep 2022 11:30:34 +0200 Subject: Add support for hex notation for uint64 type Specifically, now we can do: x = [uint64] 0x0000ffff cxx.poptions += "-DOFFSET=$x" # -DOFFSET=65535 cxx.poptions += "-DOFFSET=$string($x, 16)" # -DOFFSET=0xffff cxx.poptions += "-DOFFSET=$string($x, 16, 8)" # -DOFFSET=0x0000ffff Note that there is no hex notation support for the int64 (signed) type. --- libbuild2/utility.hxx | 1 + 1 file changed, 1 insertion(+) (limited to 'libbuild2/utility.hxx') diff --git a/libbuild2/utility.hxx b/libbuild2/utility.hxx index c82dcc2..a285b03 100644 --- a/libbuild2/utility.hxx +++ b/libbuild2/utility.hxx @@ -69,6 +69,7 @@ namespace build2 using butl::alpha; using butl::alnum; using butl::digit; + using butl::wspace; using butl::trim; using butl::next_word; -- cgit v1.1