• 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: Multiline using #define
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiline using #define


  • Subject: Re: Multiline using #define
  • From: David Reed <email@hidden>
  • Date: Sat, 5 Jun 2004 16:12:32 -0400

Precede your line breaks with \ (backslash). The preprocessor will treat it as all one line.

#define kMyConstant DoSomething(blah, \
blah, blah, \
blah)

David.

On Saturday, Jun 5, 2004, at 15:57 US/Eastern, Stefan Pantke wrote:

Hi folks,

just forgot how to define multiline constants in C.
A single line constant wouldn't be OK.

Any ideas?

Stefan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Multiline using #define
      • From: Stefan Pantke <email@hidden>
References: 
 >Multiline using #define (From: Stefan Pantke <email@hidden>)

  • Prev by Date: Multiline using #define
  • Next by Date: Getting Items From MainMenu
  • Previous by thread: Multiline using #define
  • Next by thread: Re: Multiline using #define
  • Index(es):
    • Date
    • Thread