diff options
Diffstat (limited to 'toolsrc/src/vcpkg_Enums.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg_Enums.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/toolsrc/src/vcpkg_Enums.cpp b/toolsrc/src/vcpkg_Enums.cpp index 5e698659d..b5a487a37 100644 --- a/toolsrc/src/vcpkg_Enums.cpp +++ b/toolsrc/src/vcpkg_Enums.cpp @@ -9,13 +9,8 @@ namespace vcpkg::Enums return Strings::format("%s_NULLVALUE", enum_name); } - void nullvalue_used(const std::string& enum_name) + __declspec(noreturn) void nullvalue_used(const LineInfo& line_info, const std::string& enum_name) { - Checks::exit_with_message("NULLVALUE of enum %s was used", enum_name); - } - - void unreachable(const std::string& enum_name) - { - Checks::exit_with_message("Unreachable code for enum, %s", enum_name); + Checks::exit_with_message(VCPKG_LINE_INFO, "NULLVALUE of enum %s was used", enum_name); } } |
