Slickedit macro parsing setting method

Source: Internet
Author: User

# 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.