From 70b1bf50de703330436f2ae9cb103fe33cbb567e Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Thu, 21 Nov 2024 10:00:35 +0100 Subject: `make format` --- src/crepe/api/Script.hpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/crepe/api/Script.hpp') diff --git a/src/crepe/api/Script.hpp b/src/crepe/api/Script.hpp index 8186bd4..e60be07 100644 --- a/src/crepe/api/Script.hpp +++ b/src/crepe/api/Script.hpp @@ -31,13 +31,16 @@ void Script::logf(Args &&... args) { } template -void Script::subscribe_internal(const EventHandler & callback, event_channel_t channel) { +void Script::subscribe_internal(const EventHandler & callback, + event_channel_t channel) { EventManager & mgr = *this->event_manager_ref; - subscription_t listener = mgr.subscribe([this, callback](const EventType & data) -> bool { - bool & active = *this->active_ref; - if (!active) return false; - return callback(data); - }, channel); + subscription_t listener = mgr.subscribe( + [this, callback](const EventType & data) -> bool { + bool & active = *this->active_ref; + if (!active) return false; + return callback(data); + }, + channel); this->listeners.push_back(listener); } -- cgit v1.2.3