mirror of https://github.com/encounter/SDL.git
Fixed a few warnings that show up with -Wdocumentation and -Wdocumentation-unknown-command, patch contributed by Sylvain
This commit is contained in:
parent
eaca3958ad
commit
c7351c2dea
|
@ -201,7 +201,7 @@ typedef SDL_AssertState (SDLCALL *SDL_AssertionHandler)(
|
||||||
*
|
*
|
||||||
* This callback is NOT reset to SDL's internal handler upon SDL_Quit()!
|
* This callback is NOT reset to SDL's internal handler upon SDL_Quit()!
|
||||||
*
|
*
|
||||||
* \return SDL_AssertState value of how to handle the assertion failure.
|
* Return SDL_AssertState value of how to handle the assertion failure.
|
||||||
*
|
*
|
||||||
* \param handler Callback function, called when an assertion fails.
|
* \param handler Callback function, called when an assertion fails.
|
||||||
* \param userdata A pointer passed to the callback as-is.
|
* \param userdata A pointer passed to the callback as-is.
|
||||||
|
@ -250,7 +250,7 @@ extern DECLSPEC SDL_AssertionHandler SDLCALL SDL_GetAssertionHandler(void **puse
|
||||||
* <code>
|
* <code>
|
||||||
* const SDL_AssertData *item = SDL_GetAssertionReport();
|
* const SDL_AssertData *item = SDL_GetAssertionReport();
|
||||||
* while (item) {
|
* while (item) {
|
||||||
* printf("'%s', %s (%s:%d), triggered %u times, always ignore: %s.\n",
|
* printf("'%s', %s (%s:%d), triggered %u times, always ignore: %s.\\n",
|
||||||
* item->condition, item->function, item->filename,
|
* item->condition, item->function, item->filename,
|
||||||
* item->linenum, item->trigger_count,
|
* item->linenum, item->trigger_count,
|
||||||
* item->always_ignore ? "yes" : "no");
|
* item->always_ignore ? "yes" : "no");
|
||||||
|
|
|
@ -51,7 +51,9 @@ extern "C" {
|
||||||
* SDL_Init(): SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS
|
* SDL_Init(): SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* The gamecontroller structure used to identify an SDL game controller */
|
/**
|
||||||
|
* The gamecontroller structure used to identify an SDL game controller
|
||||||
|
*/
|
||||||
struct _SDL_GameController;
|
struct _SDL_GameController;
|
||||||
typedef struct _SDL_GameController SDL_GameController;
|
typedef struct _SDL_GameController SDL_GameController;
|
||||||
|
|
||||||
|
|
|
@ -780,6 +780,11 @@ extern DECLSPEC const char * SDLCALL SDL_GetHint(const char *name);
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC SDL_bool SDLCALL SDL_GetHintBoolean(const char *name, SDL_bool default_value);
|
extern DECLSPEC SDL_bool SDLCALL SDL_GetHintBoolean(const char *name, SDL_bool default_value);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief type definition of the hint callback function.
|
||||||
|
*/
|
||||||
|
typedef void (*SDL_HintCallback)(void *userdata, const char *name, const char *oldValue, const char *newValue);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Add a function to watch a particular hint
|
* \brief Add a function to watch a particular hint
|
||||||
*
|
*
|
||||||
|
@ -787,7 +792,6 @@ extern DECLSPEC SDL_bool SDLCALL SDL_GetHintBoolean(const char *name, SDL_bool d
|
||||||
* \param callback The function to call when the hint value changes
|
* \param callback The function to call when the hint value changes
|
||||||
* \param userdata A pointer to pass to the callback function
|
* \param userdata A pointer to pass to the callback function
|
||||||
*/
|
*/
|
||||||
typedef void (*SDL_HintCallback)(void *userdata, const char *name, const char *oldValue, const char *newValue);
|
|
||||||
extern DECLSPEC void SDLCALL SDL_AddHintCallback(const char *name,
|
extern DECLSPEC void SDLCALL SDL_AddHintCallback(const char *name,
|
||||||
SDL_HintCallback callback,
|
SDL_HintCallback callback,
|
||||||
void *userdata);
|
void *userdata);
|
||||||
|
|
|
@ -60,7 +60,9 @@ extern "C" {
|
||||||
* SDL_Init(): SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS
|
* SDL_Init(): SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* The joystick structure used to identify an SDL joystick */
|
/**
|
||||||
|
* The joystick structure used to identify an SDL joystick
|
||||||
|
*/
|
||||||
struct _SDL_Joystick;
|
struct _SDL_Joystick;
|
||||||
typedef struct _SDL_Joystick SDL_Joystick;
|
typedef struct _SDL_Joystick SDL_Joystick;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue