Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Enum name to string and vice versa code
  4. //
  5. //=============================================================================
  6. #include "stdafx.h"
  7. #include "enumutils.h"
  8. // memdbgon must be the last include file in a .cpp file!!!
  9. #include "tier0/memdbgon.h"
  10. namespace GCSDK
  11. {
  12. #ifdef GC
  13. ENUMSTRINGS_START( EForeignKeyAction )
  14. {k_EForeignKeyActionNoAction, "NO ACTION" },
  15. {k_EForeignKeyActionCascade, "CASCADE" },
  16. {k_EForeignKeyActionSetNULL, "SET NULL" },
  17. ENUMSTRINGS_REVERSE( EForeignKeyAction, k_EForeignKeyActionNoAction )
  18. ENUMSTRINGS_START( EGCSQLType )
  19. {k_EGCSQLTypeInvalid, "k_EGCSQLTypeInvalid" },
  20. {k_EGCSQLType_Blob, "k_EGCSQLType_Blob" },
  21. {k_EGCSQLType_String, "k_EGCSQLType_String" },
  22. {k_EGCSQLType_int8, "k_EGCSQLType_int8" },
  23. {k_EGCSQLType_int16, "k_EGCSQLType_int16" },
  24. {k_EGCSQLType_int32, "k_EGCSQLType_int32" },
  25. {k_EGCSQLType_int64, "k_EGCSQLType_int64" },
  26. {k_EGCSQLType_float, "k_EGCSQLType_float" },
  27. {k_EGCSQLType_double, "k_EGCSQLType_double" },
  28. {k_EGCSQLType_Image, "k_EGCSQLType_Image" },
  29. ENUMSTRINGS_REVERSE( EGCSQLType, k_EGCSQLTypeInvalid )
  30. #endif
  31. ENUMSTRINGS_START( EUniverse )
  32. { k_EUniverseInvalid, "Invalid" },
  33. { k_EUniversePublic, "Public" },
  34. { k_EUniverseBeta, "Beta" },
  35. { k_EUniverseInternal, "Internal" },
  36. { k_EUniverseDev, "Dev" },
  37. ENUMSTRINGS_REVERSE( EUniverse, k_EUniverseInvalid )
  38. } // namespace GCSDK