-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[localization] more! remove system.print.h from vcpkg/base, tests (#479)
* remove system.print.h from testing stuff * remove system.print.h from vcpkg/base * CRs * format Co-authored-by: nicole mazzuca <[email protected]>
- Loading branch information
1 parent
c141688
commit a87c448
Showing
13 changed files
with
134 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -248,6 +248,7 @@ namespace vcpkg::msg | |
DECLARE_MSG_ARG(count, "42"); | ||
DECLARE_MSG_ARG(elapsed, "3.532 min"); | ||
DECLARE_MSG_ARG(email, "[email protected]"); | ||
DECLARE_MSG_ARG(error_msg, "File Not Found"); | ||
DECLARE_MSG_ARG(exit_code, "127"); | ||
DECLARE_MSG_ARG(expected_version, "1.3.8"); | ||
DECLARE_MSG_ARG(new_scheme, "version"); | ||
|
@@ -305,12 +306,20 @@ namespace vcpkg::msg | |
"", | ||
"error: cannot specify both --no-{option} and --{option}."); | ||
inline void print_warning(const LocalizedString& s) | ||
{ | ||
print(Color::warning, format(msgErrorMessage).append(s).appendnl()); | ||
} | ||
template<class Message, class... Ts> | ||
void print_warning(Message m, Ts... args) | ||
{ | ||
print(Color::warning, format(msgWarningMessage).append(format(m, args...).appendnl())); | ||
} | ||
inline void print_error(const LocalizedString& s) | ||
{ | ||
print(Color::error, format(msgErrorMessage).append(s).appendnl()); | ||
} | ||
template<class Message, class... Ts> | ||
void print_error(Message m, Ts... args) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.