SDL_FILE - Man Page

A macro that reports the current file being compiled.

Synopsis

#include <SDL3/SDL_assert.h>

#define SDL_FILE    __FILE__

Description

This macro is only defined if it isn't already defined, so to override it (perhaps with something that doesn't provide path information at all, so build machine information doesn't leak into public binaries), apps can define this macro before including SDL_assert.h. For example, Clang and GCC can define this to FILE_NAME to get just the source filename instead of the full path.

Availability

This macro is available since SDL 3.2.0.

Info

SDL 3.3.2 Simple Directmedia Layer SDL3 FUNCTIONS