mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
@@ -43,7 +43,7 @@ jobs:
|
||||
sudo apt install ninja-build -y
|
||||
- name: Compile
|
||||
env:
|
||||
COCOS_ENGINE_DEV: 1
|
||||
COCOS_ENGINE_DEV: 0
|
||||
run: |
|
||||
NATIVE_ROOT=$GITHUB_WORKSPACE/native
|
||||
echo "Compiling Linux ... "
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
#include "plugins/bus/EventBus.h"
|
||||
#include <cassert>
|
||||
#include "base/Macros.h"
|
||||
#include <cstring>
|
||||
#include <unordered_map>
|
||||
|
||||
@@ -52,7 +52,7 @@ EventBus *EventBus::acquire(BusType type) {
|
||||
}
|
||||
|
||||
void EventBus::addListener(Listener *listener) {
|
||||
assert(std::find(_listeners.begin(), _listeners.end(), listener) != _listeners.end());
|
||||
CC_ASSERT(std::find(_listeners.begin(), _listeners.end(), listener) == _listeners.end());
|
||||
_listeners.emplace_back(listener);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user