mirror of
https://github.com/gelldur/EventBus.git
synced 2024-12-27 12:21:02 +08:00
Update codestyle
This commit is contained in:
parent
9a459caa30
commit
cb0398a888
@ -32,7 +32,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
template<typename ... Args>
|
template<typename ... Args>
|
||||||
void listen(const Notification<Args...>& notification
|
void listen(const Notification<Args...>& notification
|
||||||
, typename notifier_traits<const std::function<void(Args...)>&>::type callback)
|
, typename notifier_traits<const std::function<void(Args...)>&>::type callback)
|
||||||
{
|
{
|
||||||
if (!callback)
|
if (!callback)
|
||||||
{
|
{
|
||||||
|
@ -69,6 +69,6 @@ struct notification_traits<Notification<Args...>>
|
|||||||
using callback_type = typename std::function<void(Args...)>;
|
using callback_type = typename std::function<void(Args...)>;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAKE_NOTIFICATION(NAME, args...) inline const Dexode::Notification<args>& getNotification##NAME(){static const Dexode::Notification<args> variable(691283); return variable;}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define MAKE_NOTIFICATION(NAME, args...) inline const Dexode::Notification<args>& getNotification##NAME(){static const Dexode::Notification<args> variable(691283); return variable;}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user