Problems with writing macros: Warning:backslash and newline separated by space-c

Source: Internet
Author: User

The original is because \ after a space of more than one

   Attach an example that has just been written for debugging: [cpp]  View plain  copy #define  DESAY_DEBUG (_string,myvalue)  \        do{\            c_ snprintf (desay_info, \                      250 - 1, \                       "\ndesay: file: %s   line#: %d  func: %s () \n !!!: Message is %s value is  %d\n ", \                      __FILE__, \                      __LINE__, \                      __func__, \                      _string, \                       myvalue); \           desayevent.ui4_msg_id= desay_message_id;\           desayevent.ui4_data1= (UINT32) &desay_info[0];\           a_am_get_app_handle_from_name ( &h_app_desay, "homepage");\           c_app_send_msg (H_app _desay,0,&desayevent,sizeof (desay_msg_t), null,null);\       }while (0)    

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.