Tom Anderson | d264bd3a | 2021-03-26 21:47:56 | [diff] [blame] | 1 | // Copyright 2021 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef UI_GTK_LOG_NOOP_H_ |
| 6 | #define UI_GTK_LOG_NOOP_H_ |
| 7 | |
| 8 | // This is a no-op logger used to ignore error messages reported by generated |
| 9 | // stub initializers. Some missing symbols are expected since they may only be |
| 10 | // available in specific versions of GTK. |
| 11 | struct LogNoop { |
| 12 | template <typename T> |
| 13 | LogNoop operator<<(const T& t) { |
| 14 | return *this; |
| 15 | } |
| 16 | }; |
| 17 | |
| 18 | #endif // UI_GTK_LOG_NOOP_H_ |