W
wongjoekmeu
I need to rewrite some typedef to #define.
For instance I rewrote
typedef void* handle
to
#define handle void*
But I saw for instance another typedef in my code which I don't
understand, which is
typedef const char* const* attrListPtr;
First I don't really understand this typedef and then I was wondering
how this should be rewritten using #define
I also have another typedef which I do understand. It is used for
function aliasing. But I was wondering how and if it is possible in
such a case also to replace the typedef by using #define.
For instance how would you rewrite:
typedef double (*Addition)(double value1, double value2);
??
Many thanks in advance,
rr
For instance I rewrote
typedef void* handle
to
#define handle void*
But I saw for instance another typedef in my code which I don't
understand, which is
typedef const char* const* attrListPtr;
First I don't really understand this typedef and then I was wondering
how this should be rewritten using #define
I also have another typedef which I do understand. It is used for
function aliasing. But I was wondering how and if it is possible in
such a case also to replace the typedef by using #define.
For instance how would you rewrite:
typedef double (*Addition)(double value1, double value2);
??
Many thanks in advance,
rr