Welcome, Guest. Please
login
or
register
.
Forums
Forums
Board
Topic
Home
Today's Posts
Gallery
Login
Register
Amiga.org
»
Amiga computer related discussion
»
Amiga Software Issues and Discussion
»
SAS/C var_arg Macros
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: SAS/C var_arg Macros (Read 935 times)
Description:
0 Members and 1 Guest are viewing this topic.
Thomas
Hero Member
Join Date: Jun 2002
Posts: 3396
Country:
Thanked: 22 times
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.)
Logged
Email:
thomas-rapp@web.de
Home:
thomas-rapp.hier-im-netz.de
Print
Pages: [
1
]
Go Up
« previous
next »
Amiga.org
»
Amiga computer related discussion
»
Amiga Software Issues and Discussion
»
SAS/C var_arg Macros
There was an error while thanking
Thanking...