• 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: makefile - xcode - C++ macro error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: makefile - xcode - C++ macro error


  • Subject: Re: makefile - xcode - C++ macro error
  • From: David A Rowland <email@hidden>
  • Date: Fri, 6 Apr 2007 08:40:43 -0700

At 2:40 AM -0700 4/6/07, Steve Checkoway wrote:
Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-15--23283302;
	protocol="application/pkcs7-signature"


On Apr 5, 2007, at 10:10 PM, Bruce Johnson wrote:

From my research I'm finding that apparently the compiler confuses the function
 template<typename _CharT>
   inline bool
   isspace(_CharT, const locale&);

in localefwd.h

with the macro
#define isspace(c)      __istype((c), _CTYPE_S)
in ctype.h

It's not that it's confusing the two, it's that the preprocessor runs first. Try including <cctype> before <iostream>.



Macros are terrible. They march all over your source code replacing text strings without regard to namespaces, syntax or common sense. A common practice, and highly recommended, is to use all caps for the macro (and only for macros).


_______________________________________________
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: 
 >makefile - xcode - C++ macro error (From: "Bruce Johnson" <email@hidden>)
 >Re: makefile - xcode - C++ macro error (From: Steve Checkoway <email@hidden>)

  • Prev by Date: Re: Changing the icon
  • Next by Date: Re: '@' token with .pp file
  • Previous by thread: Re: makefile - xcode - C++ macro error
  • Next by thread: Changing the icon
  • Index(es):
    • Date
    • Thread