SDL_Swap16LE3
Swap a 16-bit value from littleendian to native byte order.
Usage
#include "SDL3/SDL.h"
#define SDL_Swap16LE(x) SwapOnlyIfNecessary(x)
Header file
Defined in SDL3/SDL_endian.h
Overview
If this is running on a littleendian system, x is returned unchanged.
This macro never references x more than once, avoiding side effects.
Return value
Returns x in native byte order.
Thread safety
It is safe to call this macro from any thread.