diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdbsupport/event-loop.h | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-users/simark/clang-format.zip binutils-users/simark/clang-format.tar.gz binutils-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdbsupport/event-loop.h')
-rw-r--r-- | gdbsupport/event-loop.h | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/gdbsupport/event-loop.h b/gdbsupport/event-loop.h index c931374..a53bdf7 100644 --- a/gdbsupport/event-loop.h +++ b/gdbsupport/event-loop.h @@ -89,12 +89,11 @@ extern void delete_file_handler (int fd); If IS_UI is set, this file descriptor is used for a user interface. */ extern void add_file_handler (int fd, handler_func *proc, - gdb_client_data client_data, - std::string &&name, bool is_ui = false); + gdb_client_data client_data, std::string &&name, + bool is_ui = false); -extern int create_timer (int milliseconds, - timer_handler_func *proc, - gdb_client_data client_data); +extern int create_timer (int milliseconds, timer_handler_func *proc, + gdb_client_data client_data); extern void delete_timer (int id); /* Must be defined by client. */ @@ -128,21 +127,21 @@ extern debug_event_loop_kind debug_event_loop; /* Print an "event loop" debug statement. */ -#define event_loop_debug_printf(fmt, ...) \ +#define event_loop_debug_printf(fmt, ...) \ debug_prefixed_printf_cond (debug_event_loop != debug_event_loop_kind::OFF, \ - "event-loop", fmt, ##__VA_ARGS__) + "event-loop", fmt, ##__VA_ARGS__) /* Print an "event loop" debug statement that is know to come from a UI-related event (e.g. calling the event handler for the fd of the CLI). */ -#define event_loop_ui_debug_printf(is_ui, fmt, ...) \ - do \ - { \ - if (debug_event_loop == debug_event_loop_kind::ALL \ - || (debug_event_loop == debug_event_loop_kind::ALL_EXCEPT_UI \ - && !is_ui)) \ - debug_prefixed_printf ("event-loop", __func__, fmt, ##__VA_ARGS__); \ - } \ +#define event_loop_ui_debug_printf(is_ui, fmt, ...) \ + do \ + { \ + if (debug_event_loop == debug_event_loop_kind::ALL \ + || (debug_event_loop == debug_event_loop_kind::ALL_EXCEPT_UI \ + && !is_ui)) \ + debug_prefixed_printf ("event-loop", __func__, fmt, ##__VA_ARGS__); \ + } \ while (0) #endif /* EVENT_LOOP_H */ |