Home » Developer & Programmer » Precompilers, OCI & OCCI » Macros with variable number of arguments
Macros with variable number of arguments [message #94170] Wed, 14 April 2004 06:01
Alejandro Martinez
Messages: 1
Registered: April 2004
Junior Member
From GCC info pages:
In the ISO C standard of 1999, a macro can be declared to accept a
variable number of arguments much as a function can. The syntax for
defining the macro is similar to that of a function. Here is an
#define debug(format, ...) fprintf (stderr, format, __VA_ARGS__)

Oracle 8 proc refuses to parse that kind of macros, even in ANSI_C code mode.
Oracle 9 ( does the same.

I guess there are only two options:
- preprocess those macros with the C preprocessor and then switch to proc
- use parse=NONE (but that breaks other meaningful macros...)

Any additional suggestion?
Previous Topic: Pro*C compile error
Next Topic: Need help in making a Message Queueing program
Goto Forum:

Current Time: Sun Mar 03 02:24:05 CST 2024