tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: KASSERTMSG fix



> And I am not aware of a solution where you can have two "..." in a C
> function.

You can't actually _write_ something like

void foo(const char *, ..., int, const char *, const char *, ...);

but, except for -Wformat issues, you can get that effect with suitable
use of va_* calls within the implementation of foo().  (If you expect
to use vprintf or relatives to consume the first ... list, this
involves unwarranted chumminess with the stdarg implementation.  But if
you walk the first ... list yourself, it's no problem at all.)

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML                mouse%rodents-montreal.org@localhost
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index