WhisperCom/include/Whisper/types.hpp

8 lines
192 B
C++
Raw Normal View History

2021-08-21 23:48:06 +02:00
#pragma once
#include <string>
template<typename T> const std::string GetTypeName();
#define DEFINE_TYPE_NAME(type, name) \
template<>const std::string GetTypeName<type>(){return name;}