1754014 Members
7596 Online
108811 Solutions
New Discussion юеВ

CC compiler option

 
Rajasekaran
New Member

CC compiler option

In CC compiler ( HP Unix) compiler to support variable length of arguments for the macro which option has to set?.
We declare the macro like this
#define TEST_TRACE(level, str, val...) test_trace(level,__FILE__,__LINE__,str,##val)
and compiler gives the error for calling the macro without third argument.
Your help will be highly appreciated
2 REPLIES 2
ranganath ramachandra
Esteemed Contributor

Re: CC compiler option

found this discussion on cxx-dev mailing list

http://h21007.www2.hp.com/dspp/ml/showArchiveMessage/1,,24!03!06!0017,00.html

follow the thread for more info.

theres a pointer to

http://www.sunsite.ualberta.ca/Documentation/Gnu/gcc-3.0.2/html_node/cpp_19.
html

hope it helps.
 
--
ranga
[i work for hpe]

Accept or Kudo

ranganath ramachandra
Esteemed Contributor

Re: CC compiler option

if you are using CC (not cc) i guess its obsoleted. the pointer i gave you was for aCC.
 
--
ranga
[i work for hpe]

Accept or Kudo