mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-31 22:42:52 +08:00
Sync SDL3 wiki -> header
[ci skip]
This commit is contained in:
@@ -177,12 +177,13 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SDL_FILE
|
#ifndef SDL_FILE
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A macro that reports the current file being compiled.
|
* A macro that reports the current file being compiled.
|
||||||
*
|
*
|
||||||
* This macro is only defined if it isn't already defined, so to override
|
* This macro is only defined if it isn't already defined, so to override it
|
||||||
* it (perhaps with something that doesn't provide path information at all,
|
* (perhaps with something that doesn't provide path information at all, so
|
||||||
* so build machine information doesn't leak into public binaries), apps can
|
* build machine information doesn't leak into public binaries), apps can
|
||||||
* define this macro before including SDL_assert.h. For example, Clang and GCC
|
* 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
|
* can define this to `FILE_NAME` to get just the source filename instead of
|
||||||
* the full path.
|
* the full path.
|
||||||
@@ -193,12 +194,14 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SDL_ASSERT_FILE
|
#ifndef SDL_ASSERT_FILE
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A macro that reports the current file being compiled, for use in assertions.
|
* A macro that reports the current file being compiled, for use in
|
||||||
|
* assertions.
|
||||||
*
|
*
|
||||||
* This macro is only defined if it isn't already defined, so to override
|
* This macro is only defined if it isn't already defined, so to override it
|
||||||
* it (perhaps with something that doesn't provide path information at all,
|
* (perhaps with something that doesn't provide path information at all, so
|
||||||
* so build machine information doesn't leak into public binaries), apps can
|
* build machine information doesn't leak into public binaries), apps can
|
||||||
* define this macro before including SDL_assert.h. For example, defining this
|
* define this macro before including SDL_assert.h. For example, defining this
|
||||||
* to `""` will make sure no source path information is included in asserts.
|
* to `""` will make sure no source path information is included in asserts.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user