You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is hardly the end of the world, but it makes forward declaration more annoying, and use of the forward-declared type (particularly in C++) is then inconsistent.
(SDL_GameController, aka struct _SDL_GameController, suffers from the same problem.)
Thanks,
--Tom
P.S. identifiers that begin with an underscore and an uppercase letter are reserved by the standard. Feels like the chance of standard identifiers beginning with _SDL_ is low, but stranger things have happened
The text was updated successfully, but these errors were encountered:
See
SDL/include/SDL3/SDL_joystick.h
Line 73 in 3ebfb15
This is hardly the end of the world, but it makes forward declaration more annoying, and use of the forward-declared type (particularly in C++) is then inconsistent.
Compare and contrast with, say,
SDL_Window
, which you can just forward declare using the name you'd use normally: https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_video.h#L95(
SDL_GameController
, akastruct _SDL_GameController
, suffers from the same problem.)Thanks,
--Tom
P.S. identifiers that begin with an underscore and an uppercase letter are reserved by the standard. Feels like the chance of standard identifiers beginning with
_SDL_
is low, but stranger things have happenedThe text was updated successfully, but these errors were encountered: