mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 12:59:00 +08:00
exit() -> ::exit()
This commit is contained in:
parent
79830d3cac
commit
27bc606020
@ -20,14 +20,14 @@ namespace vcpkg::Checks
|
||||
#ifndef NDEBUG
|
||||
std::abort();
|
||||
#else
|
||||
exit(EXIT_FAILURE);
|
||||
::exit(EXIT_FAILURE);
|
||||
#endif
|
||||
}
|
||||
|
||||
void exit_with_code(const LineInfo& line_info, const int exit_code)
|
||||
{
|
||||
print_line_info_if_debug(line_info);
|
||||
exit(exit_code);
|
||||
::exit(exit_code);
|
||||
}
|
||||
|
||||
__declspec(noreturn) void exit_with_message(const LineInfo& line_info, const char* errorMessage)
|
||||
|
Loading…
Reference in New Issue
Block a user