Added missing log debug function
authorSam Lantinga <slouken@libsdl.org>
Sat, 19 Feb 2011 11:23:56 -0800
changeset 5348 16202b090a63
parent 5347 10609833cd43
child 5349 02770b3c43f8
Added missing log debug function
include/SDL_log.h
src/SDL_log.c
--- a/include/SDL_log.h	Sat Feb 19 11:23:41 2011 -0800
+++ b/include/SDL_log.h	Sat Feb 19 11:23:56 2011 -0800
@@ -144,6 +144,11 @@
 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
  */
 extern DECLSPEC void SDLCALL SDL_LogInfo(int category, const char *fmt, ...);
--- a/src/SDL_log.c	Sat Feb 19 11:23:41 2011 -0800
+++ b/src/SDL_log.c	Sat Feb 19 11:23:56 2011 -0800
@@ -175,6 +175,16 @@
 }
 
 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, ...)
 {
     va_list ap;