2017-02-10 10:26:16 +08:00
|
|
|
#include "pch.h"
|
2017-04-28 09:08:52 +08:00
|
|
|
|
2017-02-10 10:26:16 +08:00
|
|
|
#include "vcpkg_Checks.h"
|
2017-04-28 09:08:52 +08:00
|
|
|
#include "vcpkg_Enums.h"
|
2017-02-10 10:26:16 +08:00
|
|
|
|
|
|
|
namespace vcpkg::Enums
|
|
|
|
{
|
2017-04-29 04:07:51 +08:00
|
|
|
std::string nullvalue_to_string(const CStringView enum_name) { return Strings::format("%s_NULLVALUE", enum_name); }
|
2017-02-10 10:26:16 +08:00
|
|
|
|
2017-04-29 04:07:51 +08:00
|
|
|
[[noreturn]] void nullvalue_used(const LineInfo& line_info, const CStringView enum_name)
|
2017-02-10 10:26:16 +08:00
|
|
|
{
|
2017-03-23 08:18:41 +08:00
|
|
|
Checks::exit_with_message(line_info, "NULLVALUE of enum %s was used", enum_name);
|
2017-02-10 10:26:16 +08:00
|
|
|
}
|
|
|
|
}
|