[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getting EBADF on MSVC
From: |
Bruno Haible |
Subject: |
Re: getting EBADF on MSVC |
Date: |
Mon, 19 Sep 2011 23:16:09 +0200 |
User-agent: |
KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; ) |
Hi Paul,
> I also have some qualms about C macros that expand to series of tokens
> with unbalanced braces.
The approach has the big advantage that you can step through the code in a
debugger, and that the entire block expands into a single statement.
(The original approach from gdb-7.2/gdb/exceptions.h has no unbalanced
braces, but the expansion is 2 statements, not 1 statement.)
Actually the unbalanced braces have the advantage that you immediately get a
syntax error if you forget the DONE_MSVC_INVAL token at the end. It happened
to me already.
Bruno
--
In memoriam James A. Garfield <http://en.wikipedia.org/wiki/James_A._Garfield>
- Re: getting EBADF on MSVC, (continued)
- Re: getting EBADF on MSVC, Bruno Haible, 2011/09/19
- Re: getting EBADF on MSVC, Paul Eggert, 2011/09/19
- Re: getting EBADF on MSVC, Bruno Haible, 2011/09/20
- Re: getting EBADF on MSVC, Paul Eggert, 2011/09/24
- Re: getting EBADF on MSVC, Bruno Haible, 2011/09/24
- Re: getting EBADF on MSVC, Paul Eggert, 2011/09/25
- Re: getting EBADF on MSVC, Bruno Haible, 2011/09/24
- Re: getting EBADF on MSVC, Paul Eggert, 2011/09/25
- Re: getting EBADF on MSVC, Bruno Haible, 2011/09/25
- Re: getting EBADF on MSVC, Paul Eggert, 2011/09/25
- Re: getting EBADF on MSVC,
Bruno Haible <=
- Re: getting EBADF on MSVC, Bruno Haible, 2011/09/19
Re: getting EBADF on MSVC, Bruno Haible, 2011/09/18
Re: getting EBADF on MSVC, Bruno Haible, 2011/09/23