Re: How to get AC_DEFINE to generate a macro, e.g., #define incr(x) ((x)+1) ?

2005-06-09 Thread Steven G. Johnson
Thien-Thi Nguyen wrote: Fred Proctor <[EMAIL PROTECTED]> writes: How can one get AC_DEFINE to define a variable with an argument list? I want to do something like this: AC_DEFINE(incr(x),((x)+1),"increment") i think either you misunderstand AC_DEFINE or i misunderstand you. where in the doc

Re: How to get AC_DEFINE to generate a macro, e.g., #define incr(x) ((x)+1) ?

2005-06-09 Thread Thien-Thi Nguyen
Fred Proctor <[EMAIL PROTECTED]> writes: > How can one get AC_DEFINE to define a variable with an argument > list? I want to do something like this: > > AC_DEFINE(incr(x),((x)+1),"increment") i think either you misunderstand AC_DEFINE or i misunderstand you. where in the documentation is the po

How to get AC_DEFINE to generate a macro, e.g., #define incr(x) ((x)+1) ?

2005-06-09 Thread Fred Proctor
How can one get AC_DEFINE to define a variable with an argument list? I want to do something like this: AC_DEFINE(incr(x),((x)+1),"increment") The parens in the value part, ((x)+1), go across OK. The parens in the variable part, incr(x), are killing me. --Fred