3 #include "Architecture.hpp"
17 std::mutex m_ConsoleMutex;
18 std::mutex m_ConfigMutex;
32 if constexpr ( std::is_same_v<T, std::string_view> )
34 warn(
"Deprecated, prefer using ArchitectureType");
39 if constexpr ( std::is_same_v<T, std::wstring_view> )
41 warn(
"Deprecated, prefer using ArchitectureType");
42 SetArchitecture(Utils::StringLib::To<std::string>(arg));
46 if constexpr ( std::is_same_v<T, ArchitectureType> )
52 if constexpr ( std::is_same_v<T, Log::LogLevel> )
58 if constexpr ( std::is_same_v<T, Endianess> )
64 throw new std::bad_typeid();
75 SetArchitecture(ArchitectureType
const& arch);
84 SetArchitecture(std::string_view
const& type);
94 SetEndianess(Endianess end);
Logging header: Wide string support on linux is at best flaky, so only Windows version gets both stri...
LogLevel
Define the logging level.
Definition: Log.hpp:60
Global context definition.
Definition: Context.hpp:14
Architecture class definition, with its wstring representation.
Definition: Architecture.hpp:59