Re: Apostrophes in #warning
Re: Apostrophes in #warning
- Subject: Re: Apostrophes in #warning
- From: Paul Lalonde <email@hidden>
- Date: Tue, 2 Mar 2004 16:02:13 -0500
Le 04-03-02, ` 05:33, Matt Gough a icrit :
I would have thought that the compiler should treat everything after
the #warning as plain text, without having to worry about quote
matching.
There is no such thing as "plain text" in C/C++ preprocessor
statements. Such statements (eg #warning) need to be made up of a
sequence of "preprocessing tokens", which are themselves a subset of
the valid tokens in a C/C++ source file.
In short, you can't have just a solitary single or double quote -- it
would need to be paired. I usually just set up the entire warning
message as a single string literal. Eg,
#warning "Here's my message"
--
Paul Lalonde paullalonde at mac dot com
"Il n'y a que les banques qui sont libres" -- Jean-Luc Godard
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.