Thread: Macros in C
View Single Post

  #1 (permalink)  
Old 05-11-2006, 02:14 PM
Parag Dave Parag Dave is offline
Junior Member
 
Join Date: May 2006
Location: Mumbai
Posts: 1
Rep Power: 0
Parag Dave
Default Macros in C

Hi ,

below macro defination works fine with .cpp file and gives me error with .c

#define DLOG(fmt,args...) printf(fmt, ## arg


can anybody tell me the reason for such behaviour .
I am using GCC 3.0(gcc3/g++3) compiler.

thanks
Reply With Quote