X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftypes%2Fcpp_macro_decl.c;h=d5e195c353fa0f35c442c064ceb79584ad4ef20c;hb=1b6db76e3005344b33ab45b00e7e61386a33932a;hp=bfa230c3cf5963bb6a4edb0c7672cd41325a7543;hpb=6509a2053456d0e63b6f383b757289d3016ed1a5;p=m6w6%2Fext-psi diff --git a/src/types/cpp_macro_decl.c b/src/types/cpp_macro_decl.c index bfa230c..d5e195c 100644 --- a/src/types/cpp_macro_decl.c +++ b/src/types/cpp_macro_decl.c @@ -74,4 +74,16 @@ void psi_cpp_macro_decl_dump(int fd, struct psi_cpp_macro_decl *macro) } dprintf(fd, ")"); } + + if (macro->exp) { + dprintf(fd, " "); + psi_num_exp_dump(fd, macro->exp); + } else if (macro->tokens) { + size_t i = 0; + struct psi_token *tok; + + while (psi_plist_get(macro->tokens, i++, &tok)) { + dprintf(fd, " %s", tok->text); + } + } }