mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 12:39:06 +08:00
Remove Checks::check_throw() #2
This commit is contained in:
parent
9b62a4b207
commit
17b4d1cb5c
@ -36,20 +36,6 @@ namespace vcpkg::Checks
|
||||
exit_fail(line_info);
|
||||
}
|
||||
|
||||
__declspec(noreturn) void throw_with_message(const LineInfo& line_info, const cstring_view errorMessage)
|
||||
{
|
||||
print_line_info_if_debug(line_info);
|
||||
throw std::runtime_error(errorMessage);
|
||||
}
|
||||
|
||||
void check_throw(const LineInfo& line_info, bool expression, const cstring_view errorMessage)
|
||||
{
|
||||
if (!expression)
|
||||
{
|
||||
throw_with_message(line_info, errorMessage);
|
||||
}
|
||||
}
|
||||
|
||||
void check_exit(const LineInfo& line_info, bool expression)
|
||||
{
|
||||
if (!expression)
|
||||
|
Loading…
Reference in New Issue
Block a user