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