Add extra assert

fail ASAP during debug
This commit is contained in:
Dawid Drozd 2020-01-18 13:22:46 +01:00
parent d7c9690cc7
commit 871db45754

View File

@ -3,6 +3,7 @@
//
#pragma once
#include <cassert>
#include <memory>
#include "dexode/eventbus/Bus.hpp"
@ -25,6 +26,7 @@ public:
template <typename Event>
constexpr bool postpone(Event event)
{
assert(_hideBus != nullptr);
return _hideBus->postpone(event);
}