mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 19:17:10 +01:00
[Checks] Take parameter by ref
This commit is contained in:
parent
be2ea0373f
commit
402bbbc1e2
@ -27,7 +27,7 @@ namespace vcpkg::Checks
|
||||
// Display an error message to the user and exit the tool.
|
||||
[[noreturn]] void exit_with_message(const LineInfo& line_info,
|
||||
const char* error_message_template,
|
||||
const Arg1 error_message_arg1,
|
||||
const Arg1& error_message_arg1,
|
||||
const Args&... error_message_args)
|
||||
{
|
||||
exit_with_message(line_info,
|
||||
@ -42,7 +42,7 @@ namespace vcpkg::Checks
|
||||
void check_exit(const LineInfo& line_info,
|
||||
Conditional&& expression,
|
||||
const char* error_message_template,
|
||||
const Arg1 error_message_arg1,
|
||||
const Arg1& error_message_arg1,
|
||||
const Args&... error_message_args)
|
||||
{
|
||||
if (!expression)
|
||||
|
Loading…
x
Reference in New Issue
Block a user