Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
74b33811
Commit
74b33811
authored
Jan 12, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added SDL errors to the Android log stream if DEBUG_ERROR is defined
parent
835dde1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
SDL_error.c
src/SDL_error.c
+7
-0
No files found.
src/SDL_error.c
View file @
74b33811
...
@@ -23,6 +23,10 @@
...
@@ -23,6 +23,10 @@
/* Simple error handling in SDL */
/* Simple error handling in SDL */
#ifdef __ANDROID__
#include <android/log.h>
#endif
#include "SDL_error.h"
#include "SDL_error.h"
#include "SDL_error_c.h"
#include "SDL_error_c.h"
...
@@ -111,7 +115,10 @@ SDL_SetError(const char *fmt, ...)
...
@@ -111,7 +115,10 @@ SDL_SetError(const char *fmt, ...)
/* If we are in debug mode, print out an error message */
/* If we are in debug mode, print out an error message */
#ifdef DEBUG_ERROR
#ifdef DEBUG_ERROR
fprintf
(
stderr
,
"SDL_SetError: %s
\n
"
,
SDL_GetError
());
fprintf
(
stderr
,
"SDL_SetError: %s
\n
"
,
SDL_GetError
());
#ifdef __ANDROID__
__android_log_print
(
ANDROID_LOG_INFO
,
"SDL"
,
"ERROR: %s"
,
SDL_GetError
());
#endif
#endif
#endif
/* DEBUG_ERROR */
}
}
/* This function has a bit more overhead than most error functions
/* This function has a bit more overhead than most error functions
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment