sdlVersionnum function

int sdlVersionnum(
  1. int x,
  2. int y,
  3. int z
)
const SDL_VERSION = (x) \{ \ (x)->major = SDL_MAJOR_VERSION; \ (x)->minor = SDL_MINOR_VERSION; \ (x)->patch = SDL_PATCHLEVEL; \};
const SDL_VERSIONNUM = (X, Y, Z) \ ((X)*1000 + (Y)*100 + (Z));

Implementation

//void sdlVersion(Pointer<SdlVersion> x) {
//  x.ref.major = SDL_MAJOR_VERSION;
//  x.ref.minor = SDL_MINOR_VERSION;
//  x.ref.patch = SDL_MICRO_VERSION;
//}

/// ```c
/// const SDL_VERSIONNUM = (X, Y, Z) \ ((X)*1000 + (Y)*100 + (Z));
/// ```
int sdlVersionnum(int x, int y, int z) {
  return x * 1000 + y * 100 + z;
}