Added pointer lifetime documentation

This commit is contained in:
Doug Binks 2024-02-11 17:34:27 +00:00
parent 71769c584e
commit ccbf185aa9

View File

@ -3252,6 +3252,10 @@ GLFWAPI void glfwSetWindowShouldClose(GLFWwindow* window, int value);
*
* @errors Possible errors include @ref GLFW_NOT_INITIALIZED
*
* @pointer_lifetime The returned string is allocated and freed by GLFW. You
* should not free it yourself. It is valid until the next call to @ref
* glfwSetWindowTitle, or until the library is terminated.
*
* @thread_safety This function must only be called from the main thread.
*
* @sa @ref window_title