Updated readme
This commit is contained in:
@@ -32,16 +32,18 @@ extern int __SDL_android_printf(const char * fmt, ...) __attribute__((format(pri
|
||||
|
||||
#define __sF __SDL_fake_stdout
|
||||
|
||||
/* Generates lot of warning messages in standard headers, enable only for ultra debug mode */
|
||||
/*
|
||||
#define printf __SDL_android_printf
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define cout __SDL_fake_cout
|
||||
#define cerr __SDL_fake_cerr
|
||||
#define clog __SDL_fake_clog
|
||||
}
|
||||
|
||||
/* Generates lot of warning messages in standard headers, enable only for ultra debug mode */
|
||||
/*
|
||||
#include <stdio.h>
|
||||
#define printf __SDL_android_printf
|
||||
*/
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -259,6 +259,10 @@ then if it fails enter command
|
||||
You can also debug by adding extensive logs to your app:
|
||||
__android_log_print(ANDROID_LOG_INFO, "My App", "We somehow reached execution point #224");
|
||||
and then watching "adb logcat" output.
|
||||
You may wish to uncomment line
|
||||
#define printf __SDL_android_printf
|
||||
inside file project/jni/SDL-1.3/include/SDL_android_printf.h - this will make printf() to output to logcat,
|
||||
however it will trigger lot of warnings in system headers, so it's disabled by default.
|
||||
|
||||
If your application crashed, you should use following steps:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user