blob: 46e61db7be66d61e80876ddb2d9ef6c9122c19bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "pch.h"
#include "vcpkg_Enums.h"
#include "vcpkg_Checks.h"
namespace vcpkg::Enums
{
std::string nullvalue_toString(const std::string& enum_name)
{
return Strings::format("%s_NULLVALUE", enum_name);
}
__declspec(noreturn) void nullvalue_used(const LineInfo& line_info, const std::string& enum_name)
{
Checks::exit_with_message(line_info, "NULLVALUE of enum %s was used", enum_name);
}
}
|