diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-13 16:59:21 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-13 17:56:21 -0700 |
| commit | d15818c602e4031cb9ba6cf622182ca6e90f40ba (patch) | |
| tree | a36db2215967b063c4066a5e28dd582d1234477f /toolsrc/src/vcpkg_Checks.cpp | |
| parent | cbcd29c20954e400bf9f0eef60dd49b0af30abe6 (diff) | |
| download | vcpkg-d15818c602e4031cb9ba6cf622182ca6e90f40ba.tar.gz vcpkg-d15818c602e4031cb9ba6cf622182ca6e90f40ba.zip | |
Checks::unreachable() now needs LineInfo as an argument
Diffstat (limited to 'toolsrc/src/vcpkg_Checks.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg_Checks.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg_Checks.cpp b/toolsrc/src/vcpkg_Checks.cpp index caffb1a8f..95ef7c60f 100644 --- a/toolsrc/src/vcpkg_Checks.cpp +++ b/toolsrc/src/vcpkg_Checks.cpp @@ -1,6 +1,7 @@ #include "pch.h" #include "vcpkg_Checks.h" #include "vcpkg_System.h" +#include "vcpkglib.h" namespace vcpkg { @@ -12,9 +13,10 @@ namespace vcpkg namespace vcpkg::Checks { - __declspec(noreturn) void unreachable() + __declspec(noreturn) void unreachable(const LineInfo& line_info) { System::println(System::color::error, "Error: Unreachable code was reached"); + System::println(System::color::error, line_info.toString()); // Always print line_info here #ifndef NDEBUG std::abort(); #else |
