Created
March 23, 2018 20:27
-
-
Save bayoubengal/21757b0ddca12e594b4b0f93c65520a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto tmpBindingsItr = std::back_inserter(self->mBindingsBag); | |
tmpBindingsItr = make_lambda_binding_sptr(FPConsoleState.instance, @"flags", dispatch_get_main_queue(), [capSelfWPtr = self.wptr, _cmd](uint16_t theValue) mutable | |
{ | |
auto tmpSelfSPtr = lock_wptr<decltype(*self)>(capSelfWPtr); | |
if( unwrap(tmpSelfSPtr) == nullptr) | |
{ | |
return; | |
} | |
[ unwrap(tmpSelfSPtr) updateFlags: theValue]; | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment