Correctly forward the line_info parameter
MODIFY
src/vcpkg_Enums.cpp
src/vcpkg_Enums.cpp
@@ -11,6 +11,6 @@ namespace vcpkg::Enums
__declspec(noreturn) void nullvalue_used(const LineInfo& line_info, const std::string& enum_name)
{
- Checks::exit_with_message(VCPKG_LINE_INFO, "NULLVALUE of enum %s was used", enum_name);
+ Checks::exit_with_message(line_info, "NULLVALUE of enum %s was used", enum_name);
}
}

MODIFY
src/vcpkg_Files.cpp
src/vcpkg_Files.cpp
@@ -8,7 +8,7 @@ namespace vcpkg::Files
void check_is_directory(const LineInfo& line_info, const fs::path& dirpath)
{
- Checks::check_exit(VCPKG_LINE_INFO, fs::is_directory(dirpath), "The path %s is not a directory", dirpath.string());
+ Checks::check_exit(line_info, fs::is_directory(dirpath), "The path %s is not a directory", dirpath.string());
}
bool has_invalid_chars_for_filesystem(const std::string& s)

Correctly forward the line_info parameter