mirror of
https://github.com/gelldur/EventBus.git
synced 2024-12-26 18:51:02 +08:00
Add extra assert
fail ASAP during debug
This commit is contained in:
parent
d7c9690cc7
commit
871db45754
@ -3,6 +3,7 @@
|
|||||||
//
|
//
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include "dexode/eventbus/Bus.hpp"
|
#include "dexode/eventbus/Bus.hpp"
|
||||||
@ -25,6 +26,7 @@ public:
|
|||||||
template <typename Event>
|
template <typename Event>
|
||||||
constexpr bool postpone(Event event)
|
constexpr bool postpone(Event event)
|
||||||
{
|
{
|
||||||
|
assert(_hideBus != nullptr);
|
||||||
return _hideBus->postpone(event);
|
return _hideBus->postpone(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user