[Checks] Add check_exit() overload with no message
MODIFY
include/vcpkg_Checks.h
include/vcpkg_Checks.h
@@ -35,6 +35,8 @@ namespace vcpkg::Checks
}
}
+ void check_exit(bool expression);
+
void check_exit(bool expression, const char* errorMessage);
template <class...Args>

MODIFY
src/vcpkg_Checks.cpp
src/vcpkg_Checks.cpp
@@ -33,6 +33,14 @@ namespace vcpkg::Checks
}
}
+ void check_exit(bool expression)
+ {
+ if (!expression)
+ {
+ exit(EXIT_FAILURE);
+ }
+ }
+
void check_exit(bool expression, const char* errorMessage)
{
if (!expression)

[Checks] Add check_exit() overload with no message