mirror of https://github.com/ppy/SDL3-CS.git
Write SDL_MIXER_VERSION_ATLEAST macro
This commit is contained in:
parent
f51f432541
commit
523649fd77
|
|
@ -9,5 +9,11 @@ namespace SDL
|
|||
{
|
||||
[Constant]
|
||||
public static readonly SDL_AudioFormat MIX_DEFAULT_FORMAT = SDL_AUDIO_S16;
|
||||
|
||||
[Macro]
|
||||
public static bool SDL_MIXER_VERSION_ATLEAST(int X, int Y, int Z) =>
|
||||
((SDL_MIXER_MAJOR_VERSION >= X) &&
|
||||
(SDL_MIXER_MAJOR_VERSION > X || SDL_MIXER_MINOR_VERSION >= Y) &&
|
||||
(SDL_MIXER_MAJOR_VERSION > X || SDL_MIXER_MINOR_VERSION > Y || SDL_MIXER_MICRO_VERSION >= Z));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue