# Define defineprohinit (_ struct _) defineval (_ struct _); \ void init ##_ struct _ (void ); \ struct _ * Get ##_ struct _ (void); # define defineproinit (_ struct _) defineval (_ struct _); \ void init # _ struct _ (void) {memset (char *) & define (_ struct _), '0', sizeof (struct _));} \ struct _ * Get ##_ struct _ (void) {return (struct _ *) & define (_ struct _);} # define defineinit (_ struct _) Init # _ struct _ () # define defineget (_ struct _, _ name _) get ##_ struct ###_ name _()
Before the preceding macro is processed, slickedit cannot provide syntax prompts during the input process. slickedit does not know how to use the macro to implement methods such as setmsg_msgicboxmovemake. the compiler can compile the statements! In any case, this is very inconvenient, therefore, we need to add our Macros in Options> lanaguages> applaction versions> C/C ++ --> C/C ++ preprocessing, such as at the blue line:
Step 1. Click "new" below and enter your macro name. There is no space before and after the macro name.
Step 2. If slickedit can find these macros in your current project, slickedit will prompt you to select the one you have. You can select the one you already have.CodeExtracted.
Step 3. Click Apply Application Macro after adding
Step 4: slickedit ask if you need a retag. Click Yes!
The final result is shown as follows:
I. Smart prompts during the input process ::
Ii. Function list in the file
Finally, I hope you will have more comments on slickedit.