diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-03-18 07:19:41 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-03-18 07:19:41 +0200 |
commit | 65be7de7aca4bdac05e0acf68ec86a351e779839 (patch) | |
tree | c0fc17cf80c8b07ccf7e51936df0a818d3ced1a4 /libbuild2/variable.hxx | |
parent | c0f6b9b835e8ede26e407d7431d0a44aeb41dc15 (diff) |
Add $visibility(<variable>) function for querying variable visibility
Diffstat (limited to 'libbuild2/variable.hxx')
-rw-r--r-- | libbuild2/variable.hxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libbuild2/variable.hxx b/libbuild2/variable.hxx index 071cb5f..b293215 100644 --- a/libbuild2/variable.hxx +++ b/libbuild2/variable.hxx @@ -136,8 +136,14 @@ namespace build2 } #endif - LIBBUILD2_SYMEXPORT ostream& - operator<< (ostream&, variable_visibility); + LIBBUILD2_SYMEXPORT string + to_string (variable_visibility); + + inline ostream& + operator<< (ostream& o, variable_visibility v) + { + return o << to_string (v); + } // variable // |