Skip to content

Commit

Permalink
define vaargs ccspawn method inline for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool authored Dec 20, 2024
1 parent 93441dc commit d994347
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bindings/2.2074/Cocos2d.bro
Original file line number Diff line number Diff line change
Expand Up @@ -3512,6 +3512,17 @@ class cocos2d::ZipUtils {
class cocos2d::CCSpawn : cocos2d::CCActionInterval {
static cocos2d::CCSpawn* create(cocos2d::CCArray*) = m1 0x3309f8, imac 0x3a3db0;
// static cocos2d::CCSpawn* create(cocos2d::CCFiniteTimeAction*, ...) = m1 0x33e430, imac 0x3b9e30;
static cocos2d::CCSpawn* create(cocos2d::CCFiniteTimeAction* first, ...) = m1 inline, imac inline {
va_list args;
va_start(args, first);
auto* array = cocos2d::CCArray::create();
array->addObject(first);
while (auto* action = va_arg(args, cocos2d::CCFiniteTimeAction*)) {
array->addObject(action);
}
va_end(args);
return cocos2d::CCSpawn::create(array);
}
static cocos2d::CCSpawn* createWithTwoActions(cocos2d::CCFiniteTimeAction*, cocos2d::CCFiniteTimeAction*) = m1 0x33096c, imac 0x3a3d20;
// static cocos2d::CCSpawn* createWithVariableList(cocos2d::CCFiniteTimeAction*, char*);

Expand Down

0 comments on commit d994347

Please sign in to comment.