Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #55293
| From | Robin Becker <robin@reportlab.com> |
|---|---|
| Subject | Re: PyDoc_STRVAR error in msvc compile |
| Date | 2013-10-02 11:01 +0100 |
| References | <524AFB57.9090500@chamonix.reportlab.co.uk> <524B05B7.4060906@mrabarnett.plus.com> <524BE099.8040004@chamonix.reportlab.co.uk> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.604.1380708105.18130.python-list@python.org> (permalink) |
On 02/10/2013 10:00, Robin Becker wrote: > On 01/10/2013 18:26, MRAB wrote: >> On 01/10/2013 17:41, Robin Becker wrote: > .......... >>> >> I've tried it in a minimal console program, and it seems to work for me. >> > thanks for the test. I thought this might be an issue with the macro call > argument being spread out over several lines, but since your try works I'll dig > deeper. I used -E to get the pre-processor output and it shows my string constant ends up with the #ifdef inside it eg ......\n" #ifdef ZZZZ " ZZZZ stuff\n" #endif "\n\.... I looked for any obvious reason why that should happen, but cannot find anything. if I remove the internal #ifdef and replace with a macro containing the conditional string or "" then MSVC 9 seems to be ok with it. -- Robin Becker
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: PyDoc_STRVAR error in msvc compile Robin Becker <robin@reportlab.com> - 2013-10-02 11:01 +0100
csiph-web