Files
PyG2O/source/NoNut/include/Stringify.h
2025-01-25 00:02:52 +03:00

23 lines
375 B
C++

#ifndef NONUT_CORE_STRINGIFY_H
#define NONUT_CORE_STRINGIFY_H
#include "CommonHeader.h"
#define QUOTIFY(arg) #arg
#define STRINGIFY(arg) QUOTIFY(arg)
namespace nonut
{
template <typename T>
class Stringify
{
public:
virtual ~Stringify() = default;
[[nodiscard]] virtual String toString() const
{
return STRINGIFY(T);
}
};
}
#endif //NONUT_CORE_STRINGIFY_H