Explorar o código

Sync SDL3 wiki -> header

[ci skip]
SDL Wiki Bot hai 10 meses
pai
achega
a314a58e7e
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      include/SDL3/SDL_log.h

+ 3 - 0
include/SDL3/SDL_log.h

@@ -206,6 +206,9 @@ extern SDL_DECLSPEC void SDLCALL SDL_ResetLogPriorities(void);
  * SDL_LOG_PRIORITY_WARN and higher have a prefix showing their priority, e.g.
  * "WARNING: ".
  *
+ * This function makes a copy of its string argument, **prefix**, so it is not
+ * necessary to keep the value of **prefix** alive after the call returns.
+ *
  * \param priority the SDL_LogPriority to modify.
  * \param prefix the prefix to use for that log priority, or NULL to use no
  *               prefix.