mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-25 03:53:32 +01:00
18 lines
434 B
C++
18 lines
434 B
C++
#include "pch.h"
|
|
#include "vcpkg_Enums.h"
|
|
#include "vcpkg_Checks.h"
|
|
|
|
namespace vcpkg::Enums
|
|
{
|
|
std::string nullvalue_to_string(const std::string& enum_name)
|
|
{
|
|
return Strings::format("%s_NULLVALUE", enum_name);
|
|
}
|
|
|
|
[[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);
|
|
}
|
|
}
|