projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73f720d
)
duplicating cv::error() message to Android logcat
author
Andrey Pavlenko
<andrey.pavlenko@itseez.com>
Wed, 8 Aug 2012 12:39:24 +0000
(16:39 +0400)
committer
Andrey Pavlenko
<andrey.pavlenko@itseez.com>
Wed, 8 Aug 2012 12:39:24 +0000
(16:39 +0400)
modules/core/src/system.cpp
patch
|
blob
|
history
diff --git
a/modules/core/src/system.cpp
b/modules/core/src/system.cpp
index
b8a4661
..
42bf659
100644
(file)
--- a/
modules/core/src/system.cpp
+++ b/
modules/core/src/system.cpp
@@
-96,6
+96,10
@@
#endif
#endif
+#ifdef ANDROID
+# include <android/log.h>
+#endif
+
namespace cv
{
@@
-556,6
+560,9
@@
void error( const Exception& exc )
exc.func.c_str() : "unknown function", exc.file.c_str(), exc.line );
fprintf( stderr, "%s\n", buf );
fflush( stderr );
+# ifdef ANDROID
+ __android_log_print(ANDROID_LOG_ERROR, "cv::error()", "%s", buf);
+# endif
}
if(breakOnError)