SDL Wiki

SDL_RESTRICT

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

Header File

Defined in <SDL3/SDL_begin_code.h>

Syntax

#define SDL_RESTRICT __restrict__

Remarks

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.

Version

This macro is available since SDL 3.2.0.


CategoryAPI, CategoryAPIMacro, CategoryBeginCode


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.