---
name: "SDL_RESTRICT"
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_RESTRICT"
---

# SDL\_RESTRICT(3)

A macro to tag a pointer variable, to help with pointer aliasing.

## NAME

SDL\_RESTRICT - A macro to tag a pointer variable, to help with pointer aliasing.

## HEADER FILE

Defined in SDL3/SDL\_begin\_code.h

## SYNOPSIS

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

**#define SDL\_RESTRICT \_\_restrict\_\_**

## DESCRIPTION

A good explanation of the restrict keyword is here:

https://en.wikipedia.org/wiki/Restrict

On compilers without restrict support, this is defined to nothing.

## AVAILABILITY

This macro is available since SDL 3.2.0.
