mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 04:59:07 +08:00
Inline function
This commit is contained in:
parent
17b4d1cb5c
commit
095d3294d5
@ -5,14 +5,6 @@
|
||||
|
||||
namespace vcpkg::Checks
|
||||
{
|
||||
static void print_line_info_if_debug(const LineInfo& line_info)
|
||||
{
|
||||
if (g_debugging)
|
||||
{
|
||||
System::println(System::color::error, line_info.toString());
|
||||
}
|
||||
}
|
||||
|
||||
__declspec(noreturn) void unreachable(const LineInfo& line_info)
|
||||
{
|
||||
System::println(System::color::error, "Error: Unreachable code was reached");
|
||||
@ -26,7 +18,11 @@ namespace vcpkg::Checks
|
||||
|
||||
void exit_with_code(const LineInfo& line_info, const int exit_code)
|
||||
{
|
||||
print_line_info_if_debug(line_info);
|
||||
if (g_debugging)
|
||||
{
|
||||
System::println(System::color::error, line_info.toString());
|
||||
}
|
||||
|
||||
::exit(exit_code);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user