- public:
- wxChar *macroName;
- wxChar *macroBody;
- int noArgs;
- inline CustomMacro(wxChar *name, int args, wxChar *body)
- {
- noArgs = args;
- macroName = wxStrcpy(new wxChar[wxStrlen(name) + 1], name);
- if (body)
- macroBody = wxStrcpy(new wxChar[wxStrlen(body) + 1], body);
- else
- macroBody = NULL;
- }
- ~CustomMacro();
+public:
+ wxChar *macroName;
+ wxChar *macroBody;
+ int noArgs;
+ inline CustomMacro(const wxChar *name, int args, wxChar *body)
+ {
+ noArgs = args;
+ macroName = wxStrcpy(new wxChar[wxStrlen(name) + 1], name);
+ if (body)
+ macroBody = wxStrcpy(new wxChar[wxStrlen(body) + 1], body);
+ else
+ macroBody = NULL;
+ }
+ virtual ~CustomMacro();