mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-23 22:53:06 +08:00
17 lines
399 B
C++
17 lines
399 B
C++
#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 std::string& enum_name)
|
|
{
|
|
Checks::exit_with_message("NULLVALUE of enum %s was used", enum_name);
|
|
}
|
|
}
|