Merge branch 'master' into merge-job
[deliverable/binutils-gdb.git] / gdb / ui-style.h
index 24b4b59ed9f55477a5b151c9a88552efe787e200..48ab52d5ea90c1452f773c795c7b91aa71c444c6 100644 (file)
@@ -1,5 +1,5 @@
 /* Styling for ui_file
-   Copyright (C) 2018-2019 Free Software Foundation, Inc.
+   Copyright (C) 2018-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -223,6 +223,12 @@ struct ui_file_style
      BUF.  */
   bool parse (const char *buf, size_t *n_read);
 
+  /* We need this because we can't pass a reference via va_args.  */
+  const ui_file_style *ptr () const
+  {
+    return this;
+  }
+
 private:
 
   color m_foreground = NONE;
This page took 0.024049 seconds and 4 git commands to generate.