Procházet zdrojové kódy

Sync SDL3 wiki -> header

[ci skip]
SDL Wiki Bot před 4 měsíci
rodič
revize
a314a58e7e
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  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.