src/SDL_error.c
changeset 4979 be4ba07d9867
parent 4867 ba7492f9e2b8
child 4992 b12d76ef05e2
     1.1 --- a/src/SDL_error.c	Wed Jan 12 13:46:37 2011 -0800
     1.2 +++ b/src/SDL_error.c	Wed Jan 12 13:52:27 2011 -0800
     1.3 @@ -23,6 +23,10 @@
     1.4  
     1.5  /* Simple error handling in SDL */
     1.6  
     1.7 +#ifdef __ANDROID__
     1.8 +#include <android/log.h>
     1.9 +#endif
    1.10 +
    1.11  #include "SDL_error.h"
    1.12  #include "SDL_error_c.h"
    1.13  
    1.14 @@ -111,7 +115,10 @@
    1.15      /* If we are in debug mode, print out an error message */
    1.16  #ifdef DEBUG_ERROR
    1.17      fprintf(stderr, "SDL_SetError: %s\n", SDL_GetError());
    1.18 +#ifdef __ANDROID__
    1.19 +    __android_log_print(ANDROID_LOG_INFO, "SDL", "ERROR: %s", SDL_GetError());
    1.20  #endif
    1.21 +#endif /* DEBUG_ERROR */
    1.22  }
    1.23  
    1.24  /* This function has a bit more overhead than most error functions