diff options
author | Pierre Rossi <pierre.rossi@digia.com> | 2013-06-19 11:11:16 +0200 |
---|---|---|
committer | Pierre Rossi <pierre.rossi@digia.com> | 2013-06-19 11:18:36 +0200 |
commit | 37c1d5d3a7a8cf1e0f6f9f4c6d40bb6854739110 (patch) | |
tree | b2dab058fe7504c548753ae8001541f93ac973d8 /shared | |
parent | 6bc4e98f13631d9cd4e5e847500684a493aa4393 (diff) |
Make logging of unimplemented functions optional
Can be enabled easily by adding this line to one's ~/.gyp/include.gypi file:
'defines': [ 'QT_WEBENGINE_LOGGING', ],
Diffstat (limited to 'shared')
-rw-r--r-- | shared/render_widget_host_view_qt.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/shared/render_widget_host_view_qt.h b/shared/render_widget_host_view_qt.h index 493d89b92..fce2144df 100644 --- a/shared/render_widget_host_view_qt.h +++ b/shared/render_widget_host_view_qt.h @@ -43,8 +43,13 @@ #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_QT_H_ #include "content/browser/renderer_host/render_widget_host_view_base.h" +#include <qglobal.h> +#ifdef QT_WEBENGINE_LOGGING #define QT_NOT_YET_IMPLEMENTED fprintf(stderr, "function %s not implemented! - %s:%d\n", __func__, __FILE__, __LINE__); +#else +#define QT_NOT_YET_IMPLEMENTED qt_noop(); +#endif class QEvent; class QFocusEvent; |