I'm fairly (very) new to c++/ linux and am looking through the vfprintf function in glibc. It includes many uses of REF (...), which I'm assuming is a macro, but I can't find its definition anywhere. I've searched the file itself as well as all the included files.
Is it a macro? If so, where is its definition? Also is there a better way to find the definition of macros than searching all the included files one by one?
In stdio-common/vfprintf.c
:
#ifdef SHARED
# define REF(Name) &&do_##Name - &&do_form_unknown
#else
# define REF(Name) &&do_##Name
#endif
I found it via ctags(1)
; ctags -R . ; vim -t REF
.