K
keith
Someone please help me out here - I'm having a 'bad brain' day.
I have a number of C logging functions, prototyped as, say:
extern "C" {
mylog1(char *arg1, char *arg2, char *arg3);
mylog2(char *arg1, char *arg2, ...);
mylog3(char *arg1, ...);
}
What I want to do is throw a C++ wrapper around them. The first case
above is pretty trivial:
MYLOG:ne(char *a1, char *a2, char *a3)
{ mylog1(a1, a2, a3); }
For the life of me I can't see how I go about passing the variadic
args for the other two cases!
I have a number of C logging functions, prototyped as, say:
extern "C" {
mylog1(char *arg1, char *arg2, char *arg3);
mylog2(char *arg1, char *arg2, ...);
mylog3(char *arg1, ...);
}
What I want to do is throw a C++ wrapper around them. The first case
above is pretty trivial:
MYLOG:ne(char *a1, char *a2, char *a3)
{ mylog1(a1, a2, a3); }
For the life of me I can't see how I go about passing the variadic
args for the other two cases!