---
name: "SDL_VERSIONNUM"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_VERSIONNUM"
---

# SDL\_VERSIONNUM(3)

This macro turns the version numbers into a numeric value.

## NAME

SDL\_VERSIONNUM - This macro turns the version numbers into a numeric value.

## HEADER FILE

Defined in SDL3/SDL\_version.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**#define SDL\_VERSIONNUM(major, minor, patch) .BI** *((major)***\****1000000***+***(minor)***\****1000***+***(patch))*

## DESCRIPTION

(1,2,3) becomes 1002003.

## AVAILABILITY

This macro is available since SDL 3.2.0.
