macro question
Thomas Charron
twaffle at gmail.com
Thu Oct 8 13:26:00 EDT 2009
On Thu, Oct 8, 2009 at 9:36 AM, <bruce.labitt at autoliv.com> wrote:
> In a file system_file_ops.c that is in the psocket library there is the
> statement
>
> #define wrap(f) wrap_#f
>
> I think this is supposed to do
> wrap(read)( .... ) ==> wrap_read( .... )
>
> Are there circumstances when this does not work? C89, C99, ???
Isn't it supposed to be double #?
#define wrap(f) wrap_##f
--
-- Thomas
More information about the gnhlug-discuss
mailing list