src/SDL_log.c
changeset 11284 3db78361e751
parent 10737 3406a0f8b041
child 11721 19f948dc5620
equal deleted inserted replaced
11283:4276937a9792 11284:3db78361e751
    48     SDL_LogPriority priority;
    48     SDL_LogPriority priority;
    49     struct SDL_LogLevel *next;
    49     struct SDL_LogLevel *next;
    50 } SDL_LogLevel;
    50 } SDL_LogLevel;
    51 
    51 
    52 /* The default log output function */
    52 /* The default log output function */
    53 static void SDL_LogOutput(void *userdata,
    53 static void SDLCALL SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority, const char *message);
    54                           int category, SDL_LogPriority priority,
       
    55                           const char *message);
       
    56 
    54 
    57 static SDL_LogLevel *SDL_loglevels;
    55 static SDL_LogLevel *SDL_loglevels;
    58 static SDL_LogPriority SDL_default_priority = DEFAULT_PRIORITY;
    56 static SDL_LogPriority SDL_default_priority = DEFAULT_PRIORITY;
    59 static SDL_LogPriority SDL_assert_priority = DEFAULT_ASSERT_PRIORITY;
    57 static SDL_LogPriority SDL_assert_priority = DEFAULT_ASSERT_PRIORITY;
    60 static SDL_LogPriority SDL_application_priority = DEFAULT_APPLICATION_PRIORITY;
    58 static SDL_LogPriority SDL_application_priority = DEFAULT_APPLICATION_PRIORITY;
   310 
   308 
   311 /* Handle to stderr output of console. */
   309 /* Handle to stderr output of console. */
   312 static HANDLE stderrHandle = NULL;
   310 static HANDLE stderrHandle = NULL;
   313 #endif
   311 #endif
   314 
   312 
   315 static void
   313 static void SDLCALL
   316 SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority,
   314 SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority,
   317               const char *message)
   315               const char *message)
   318 {
   316 {
   319 #if defined(__WIN32__) || defined(__WINRT__)
   317 #if defined(__WIN32__) || defined(__WINRT__)
   320     /* Way too many allocations here, urgh */
   318     /* Way too many allocations here, urgh */