Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added missing log debug function
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 19, 2011
1 parent e2e735a commit eb3e08e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/SDL_log.h
Expand Up @@ -143,6 +143,11 @@ extern DECLSPEC void SDLCALL SDL_Log(const char *fmt, ...);
*/
extern DECLSPEC void SDLCALL SDL_LogVerbose(int category, const char *fmt, ...);

/**
* \brief Log a message with SDL_LOG_PRIORITY_DEBUG
*/
extern DECLSPEC void SDLCALL SDL_LogDebug(int category, const char *fmt, ...);

/**
* \brief Log a message with SDL_LOG_PRIORITY_INFO
*/
Expand Down
10 changes: 10 additions & 0 deletions src/SDL_log.c
Expand Up @@ -174,6 +174,16 @@ SDL_LogVerbose(int category, const char *fmt, ...)
va_end(ap);
}

void
SDL_LogDebug(int category, const char *fmt, ...)
{
va_list ap;

va_start(ap, fmt);
SDL_LogMessageV(category, SDL_LOG_PRIORITY_DEBUG, fmt, ap);
va_end(ap);
}

void
SDL_LogInfo(int category, const char *fmt, ...)
{
Expand Down

0 comments on commit eb3e08e

Please sign in to comment.