• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Soft return in XCode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Soft return in XCode


  • Subject: Re: Soft return in XCode
  • From: Dong Feng <email@hidden>
  • Date: Thu, 27 May 2010 23:10:47 +0800

It incurs no problem to use back slash for multi-line macros, because almost all macro definitions are insensitive to token delimiters (i.e. blanks, tabs). That means, while using back-slash for multi-line connector, you can still maintain correct indention (and macro definitions are usually outside any function and name space, so the indention issue are further out of concern).

However, if back-slash had been used as a solution for multi-line literal string, the indention problem would be serious because string definitions are definitely sensitive to any characters contained between the quote mark pair.



2010/5/27 Scott Ribe <email@hidden>
On May 27, 2010, at 3:22 AM, Alastair Houghton wrote:

> Isn't that a GCC extension?  I don't think that one made it into C99...

Yes, I think.

I think what people are confusing is that \ line termination is standard for multi-line macros.

--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Soft return in XCode (From: Lorenzo Thurman <email@hidden>)
 >Re: Soft return in XCode (From: Jens Alfke <email@hidden>)
 >Re: Soft return in XCode (From: Alastair Houghton <email@hidden>)
 >Re: Soft return in XCode (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: Soft return in XCode
  • Next by Date: Re: Global variables - I'm stumped
  • Previous by thread: Re: Soft return in XCode
  • Next by thread: Re: Soft return in XCode
  • Index(es):
    • Date
    • Thread