Welcome, Guest. Please login or register.

Author Topic: SAS/C var_arg Macros  (Read 935 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Thomas

Re: SAS/C var_arg Macros
« on: March 19, 2010, 04:29:08 PM »
I've seen people doing

#define D(x) x

and

D(printf ("%s\n","Hello"); )

To remove debug output change the macro to

#define D(x) /* no debug */

(not sure if I remembered everything correctly and if it works in SAS/C, but it avoids varargs macros.)