<div dir="ltr">Hi,<div><br></div><div>The SDL2 documentation recommends you to register constants with:</div><div><br></div><div>Uint32 SDL_RegisterEvents(int numevents);</div><div>   numevents = the number of events to be allocated.<br></div><div>   Returns the beginning event number, or (Uint32)-1 if there are not enough user-defined events left.</div><div><div><a href="https://wiki.libsdl.org/SDL2/SDL_RegisterEvents">https://wiki.libsdl.org/SDL2/SDL_RegisterEvents</a></div><div><br></div></div><div>The SDL_RegisterEvents result is not known at compile time, so one can't use them as case conditions. So, Is there a workaround for building these constants at compile time?</div><div><br></div><div>Best,</div><div>R </div></div>