Skip to content

Instantly share code, notes, and snippets.

@jgod
Last active August 29, 2015 14:02
Show Gist options
  • Save jgod/e38d77efd6c5a8875321 to your computer and use it in GitHub Desktop.
Save jgod/e38d77efd6c5a8875321 to your computer and use it in GitHub Desktop.
Cocos2d-x v3 Lambdas
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