diff options
Diffstat (limited to 'Source/WebCore')
-rw-r--r-- | Source/WebCore/platform/NotImplemented.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/Source/WebCore/platform/NotImplemented.h b/Source/WebCore/platform/NotImplemented.h index 61e4424..a71e99c 100644 --- a/Source/WebCore/platform/NotImplemented.h +++ b/Source/WebCore/platform/NotImplemented.h @@ -38,19 +38,20 @@ #define supressNotImplementedWarning() false #endif -#if defined ANDROID +#if OS(ANDROID) + +#include <cutils/log.h> +#ifndef LOG_TAG +#define LOG_TAG "WebCore" +#endif +#define notImplemented() do { \ + static bool havePrinted = false; \ + if (!havePrinted && !supressNotImplementedWarning()) { \ + LOGV("%s: notImplemented", __PRETTY_FUNCTION__); \ + havePrinted = true; \ + } \ + } while (0) - #if 1 && defined LOG_TAG - #ifndef _LIBS_UTILS_LOG_H - #undef LOG - #include <utils/Log.h> - #endif - #define notImplemented() LOGV("%s: notImplemented\n", __PRETTY_FUNCTION__) - #define lowPriority_notImplemented() //printf("%s\n", __PRETTY_FUNCTION__) - #define verifiedOk() // not a problem that it's not implemented - #else - #define notImplemented() fprintf(stderr, "%s\n", __PRETTY_FUNCTION__) - #endif #elif defined(NDEBUG) #define notImplemented() ((void)0) #else |