瀏覽代碼

Add 'return' comment to SDL_ClearClipboardData

Sylvain 3 年之前
父節點
當前提交
ec90c2e26d
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      include/SDL3/SDL_clipboard.h

+ 3 - 0
include/SDL3/SDL_clipboard.h

@@ -197,6 +197,9 @@ extern DECLSPEC int SDLCALL SDL_SetClipboardData(SDL_ClipboardDataCallback callb
 /**
 /**
  * Clear the clipboard data
  * Clear the clipboard data
  *
  *
+ * \returns 0 on success or a negative error code on failure; call
+ *          SDL_GetError() for more information.
+ *
  * \since This function is available since SDL 3.0.0.
  * \since This function is available since SDL 3.0.0.
  *
  *
  * \sa SDL_SetClipboardData
  * \sa SDL_SetClipboardData