Added missing log debug function
authorSam Lantinga <slouken@libsdl.org>
Sat, 19 Feb 2011 11:23:56 -0800
changeset 534816202b090a63
parent 5347 10609833cd43
child 5349 02770b3c43f8
Added missing log debug function
include/SDL_log.h
src/SDL_log.c
     1.1 --- a/include/SDL_log.h	Sat Feb 19 11:23:41 2011 -0800
     1.2 +++ b/include/SDL_log.h	Sat Feb 19 11:23:56 2011 -0800
     1.3 @@ -144,6 +144,11 @@
     1.4  extern DECLSPEC void SDLCALL SDL_LogVerbose(int category, const char *fmt, ...);
     1.5  
     1.6  /**
     1.7 + *  \brief Log a message with SDL_LOG_PRIORITY_DEBUG
     1.8 + */
     1.9 +extern DECLSPEC void SDLCALL SDL_LogDebug(int category, const char *fmt, ...);
    1.10 +
    1.11 +/**
    1.12   *  \brief Log a message with SDL_LOG_PRIORITY_INFO
    1.13   */
    1.14  extern DECLSPEC void SDLCALL SDL_LogInfo(int category, const char *fmt, ...);
     2.1 --- a/src/SDL_log.c	Sat Feb 19 11:23:41 2011 -0800
     2.2 +++ b/src/SDL_log.c	Sat Feb 19 11:23:56 2011 -0800
     2.3 @@ -175,6 +175,16 @@
     2.4  }
     2.5  
     2.6  void
     2.7 +SDL_LogDebug(int category, const char *fmt, ...)
     2.8 +{
     2.9 +    va_list ap;
    2.10 +
    2.11 +    va_start(ap, fmt);
    2.12 +    SDL_LogMessageV(category, SDL_LOG_PRIORITY_DEBUG, fmt, ap);
    2.13 +    va_end(ap);
    2.14 +}
    2.15 +
    2.16 +void
    2.17  SDL_LogInfo(int category, const char *fmt, ...)
    2.18  {
    2.19      va_list ap;