Ver Fonte

Adding tag names to enums

Adding tag names to following enums:
SDL_JoystickType, SDL_JoystickConnectionState, SDL_TouchDeviceType, SDL_DUMMY_ENUM
Petar Popovic há 11 meses atrás
pai
commit
8d0ad44edd
3 ficheiros alterados com 4 adições e 4 exclusões
  1. 2 2
      include/SDL3/SDL_joystick.h
  2. 1 1
      include/SDL3/SDL_stdinc.h
  3. 1 1
      include/SDL3/SDL_touch.h

+ 2 - 2
include/SDL3/SDL_joystick.h

@@ -88,7 +88,7 @@ typedef SDL_GUID SDL_JoystickGUID;
  */
 typedef Uint32 SDL_JoystickID;
 
-typedef enum
+typedef enum SDL_JoystickType
 {
     SDL_JOYSTICK_TYPE_UNKNOWN,
     SDL_JOYSTICK_TYPE_GAMEPAD,
@@ -102,7 +102,7 @@ typedef enum
     SDL_JOYSTICK_TYPE_THROTTLE
 } SDL_JoystickType;
 
-typedef enum
+typedef enum SDL_JoystickConnectionState
 {
     SDL_JOYSTICK_CONNECTION_INVALID = -1,
     SDL_JOYSTICK_CONNECTION_UNKNOWN,

+ 1 - 1
include/SDL3/SDL_stdinc.h

@@ -439,7 +439,7 @@ SDL_COMPILE_TIME_ASSERT(sint64, sizeof(Sint64) == 8);
 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
 #if !defined(SDL_PLATFORM_VITA) && !defined(SDL_PLATFORM_3DS)
 /* TODO: include/SDL_stdinc.h:390: error: size of array 'SDL_dummy_enum' is negative */
-typedef enum
+typedef enum SDL_DUMMY_ENUM
 {
     DUMMY_ENUM_VALUE
 } SDL_DUMMY_ENUM;

+ 1 - 1
include/SDL3/SDL_touch.h

@@ -42,7 +42,7 @@ extern "C" {
 typedef Uint64 SDL_TouchID;
 typedef Uint64 SDL_FingerID;
 
-typedef enum
+typedef enum SDL_TouchDeviceType
 {
     SDL_TOUCH_DEVICE_INVALID = -1,
     SDL_TOUCH_DEVICE_DIRECT,            /* touch screen with window-relative coordinates */