cemu-vcpkg/toolsrc/src/vcpkg_Enums.cpp

17 lines
426 B
C++
Raw Normal View History

2017-02-09 18:26:16 -08:00
#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)
2017-02-09 18:26:16 -08:00
{
Checks::exit_with_message("NULLVALUE of enum %s was used", enum_name);
}
}