> In file priv_types_n_macros.h, these are what I fail to grasp:
>
> #define WRAPPER_ENTRY_X_(auxstr, sysno, name) \
> [sysno] = { vgSysWrap_##auxstr##_##name##_before, NULL }
> #define WRAPPER_ENTRY_XY(auxstr, sysno, name) \
> [sysno] = { vgSysWrap_##auxstr##_##name##_before, \
> vgSysWrap_##auxstr##_##name##_after }
[Note: That code above commits the mistake of not invoking the two macros below.
The expansion is correct, but not using the macro that was written for the
purpose is a maintenance headache.]
>
> #define WRAPPER_PRE_NAME(auxstr, name) \
> vgSysWrap_##auxstr##_##name##_before
> #define WRAPPER_POST_NAME(auxstr, name) \
> vgSysWrap_##auxstr##_##name##_after
http://gcc.gnu.org/onlinedocs/cpp/Concatenation.html
Alternately, run the pre-processor [only] and look at its output.
Take the compile command that is generated by 'make',
change "-c" to "-E", invent a new filename then use it
to replace the argument which follows "-o". Run the
modified command, and look at the program text in the new file.
|