Skip to content

Commit 90adf2b

Browse files
committed
Add delegate util
1 parent 37ac6dc commit 90adf2b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎shared/delegates.hpp‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,8 @@ namespace MetaCore::Delegates {
8989
auto MakeUnityAction(T fun) {
9090
return MakeUnityAction(std::function(fun));
9191
}
92+
93+
inline bool SafeIsNull(System::MulticastDelegate* delegate) {
94+
return System::MulticastDelegate::op_Equality(delegate, nullptr);
95+
}
9296
}

0 commit comments

Comments
 (0)