DarkflameServer/dCommon/StringifyEnums.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
273 B
C++
Raw Normal View History

2023-12-17 11:19:37 +00:00
// Source - https://mariusbancila.ro/blog/2023/08/17/how-to-convert-an-enum-to-string-in-cpp/
#define GENERATE_ENUM_STRINGS // Start string generation
#include "eGameMessageType.h"
2023-12-17 10:02:32 +00:00
#include "eWorldMessageType.h"
2023-12-17 10:02:32 +00:00
#undef GENERATE_ENUM_STRINGS // Stop string generation