Last active
August 29, 2015 14:02
-
-
Save jgod/e38d77efd6c5a8875321 to your computer and use it in GitHub Desktop.
Cocos2d-x v3 Lambdas
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 const CB1 = CallFunc::create([&](){}); | |
// Better to use CallFuncN as default if you need to pick one to use generically. | |
auto const CB2 = CallFuncN::create([&](Ref* const sender) | |
{ | |
if (!sender) {return;} | |
// Do something. | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment