From d9943476bae765aa2f2e092590e0900b0ef0d8c3 Mon Sep 17 00:00:00 2001 From: mat <26722564+matcool@users.noreply.github.com> Date: Fri, 20 Dec 2024 11:51:29 -0300 Subject: [PATCH] define vaargs ccspawn method inline for mac --- bindings/2.2074/Cocos2d.bro | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bindings/2.2074/Cocos2d.bro b/bindings/2.2074/Cocos2d.bro index cadffcccb..60c5379d6 100644 --- a/bindings/2.2074/Cocos2d.bro +++ b/bindings/2.2074/Cocos2d.bro @@ -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*);