Write SDL_MIXER_VERSION_ATLEAST macro

This commit is contained in:
Susko3 2025-08-03 12:06:48 +02:00
parent f51f432541
commit 523649fd77
1 changed files with 6 additions and 0 deletions

View File

@ -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));
}
}