@@ -174,7 +174,7 @@ template struct SW_BUILDER_API CommandData<builder::Command>;
174174 void execute() override {}
175175};*/
176176
177- struct SW_BUILDER_API ExecuteCommand : builder::Command
177+ struct SW_BUILDER_API _ExecuteCommand : builder::Command
178178{
179179 using F = std::function<void (void )>;
180180
@@ -183,17 +183,17 @@ struct SW_BUILDER_API ExecuteCommand : builder::Command
183183 F f;
184184 bool always = false ;
185185
186- ExecuteCommand (const char *file, int line) : file(file), line(line) {}
187- ExecuteCommand (FileStorage &fs, const char *file, int line) : Command(fs), file(file), line(line) {}
186+ _ExecuteCommand (const char *file, int line) : file(file), line(line) {}
187+ _ExecuteCommand (FileStorage &fs, const char *file, int line) : Command(fs), file(file), line(line) {}
188188
189189 // template <class F2>
190190 // ExecuteCommand(const char *file, int line, F2 &&f) : ExecuteCommand(file, line), f(f) {}
191191
192192 template <class F2 >
193- ExecuteCommand (F2 &&f) : f(f) {}
193+ _ExecuteCommand (F2 &&f) : f(f) {}
194194
195195 template <class F2 >
196- ExecuteCommand (FileStorage &fs, F2 &&f) : Command(fs), f(f) {}
196+ _ExecuteCommand (FileStorage &fs, F2 &&f) : Command(fs), f(f) {}
197197
198198 /* template <class F2>
199199 ExecuteCommand(bool always, F2 &&f) : f(f), always(true) {}
@@ -211,7 +211,7 @@ struct SW_BUILDER_API ExecuteCommand : builder::Command
211211 addOutput(p);
212212 }*/
213213
214- virtual ~ExecuteCommand ();
214+ virtual ~_ExecuteCommand ();
215215
216216 bool isOutdated () const override ;
217217 void execute () override ;
@@ -221,7 +221,7 @@ struct SW_BUILDER_API ExecuteCommand : builder::Command
221221};
222222
223223#define SW_INTERNAL_INIT_COMMAND (name, target ) \
224- name->fs = (target).getSolution()->fs; \
224+ name->fs = (target).getSolution()->fs; \
225225 name->addPathDirectory ((target).getOutputDir() / (target).getConfig())
226226
227227#define SW_MAKE_CUSTOM_COMMAND (type, name, target, ...) \
@@ -237,9 +237,9 @@ struct SW_BUILDER_API ExecuteCommand : builder::Command
237237#define SW_MAKE_COMMAND_AND_ADD (name, target ) \
238238 SW_MAKE_CUSTOM_COMMAND_AND_ADD (Command, name, target)
239239
240- #define SW_MAKE_EXECUTE_COMMAND (name, target ) \
240+ #define _SW_MAKE_EXECUTE_COMMAND (name, target ) \
241241 SW_MAKE_CUSTOM_COMMAND (ExecuteCommand, name, target, __FILE__, __LINE__)
242- #define SW_MAKE_EXECUTE_COMMAND_AND_ADD (name, target ) \
242+ #define _SW_MAKE_EXECUTE_COMMAND_AND_ADD (name, target ) \
243243 SW_MAKE_CUSTOM_COMMAND_AND_ADD (ExecuteCommand, name, target, __FILE__, __LINE__)
244244}
245245
0 commit comments