log_noop.h 553 B

123456789101112131415161718
  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. #ifndef UI_GTK_LOG_NOOP_H_
  5. #define UI_GTK_LOG_NOOP_H_
  6. // This is a no-op logger used to ignore error messages reported by generated
  7. // stub initializers. Some missing symbols are expected since they may only be
  8. // available in specific versions of GTK.
  9. struct LogNoop {
  10. template <typename T>
  11. LogNoop operator<<(const T& t) {
  12. return *this;
  13. }
  14. };
  15. #endif // UI_GTK_LOG_NOOP_H_