MCPcopy Create free account
hub / github.com/audacity/audacity / AddMacro

Method AddMacro

src/BatchCommands.cpp:267–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267bool MacroCommands::AddMacro(const wxString & macro)
268{
269 // Build the filename
270 wxFileName name(FileNames::MacroDir(), macro, wxT("txt"));
271
272 // Set the file name
273 wxTextFile tf(name.GetFullPath());
274
275 // Create it..Create will display errors
276 return tf.Create();
277}
278
279bool MacroCommands::DeleteMacro(const wxString & macro)
280{

Callers 1

OnAddMethod · 0.80

Calls 1

CreateMethod · 0.45

Tested by

no test coverage detected