SDL_reinterpret_cast3
Handle a reinterpret cast properly whether using c or c++.
Usage
#include "SDL3/SDL.h"
#define SDL_reinterpret_cast(type, expression) reinterpret_cast<type>(expression) /* or `((type)(expression))` in C */
Header file
Defined in SDL3/SDL_stdinc.h
Overview
If compiled as C++, this macro offers a proper C++ reinterpret_cast<>.
If compiled as C, this macro does a normal C-style cast.
This is helpful to avoid compiler warnings in C++.
Return value
Returns expression , cast to type .
Thread safety
It is safe to call this macro from any thread.