From: nishi Date: Fri, 26 Apr 2024 05:21:26 +0000 (+0000) Subject: worky X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=9556e80e5cc2dda77b1af30c27d4c8c4ed99ca75;p=serenade.git worky git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@46 0f02c867-ac3d-714e-8a88-971ba1f6efcf --- diff --git a/Serenade/util.c b/Serenade/util.c index 2e09aa1..cb0f7a4 100644 --- a/Serenade/util.c +++ b/Serenade/util.c @@ -57,7 +57,10 @@ void sn_print_to(FILE* f, struct sn_generic* gen) { } else if(gen->type == SN_TYPE_VOID) { fprintf(f, ""); } else if(gen->type == SN_TYPE_FUNCTION) { - fprintf(f, "", gen->name == NULL ? "(anonymous)" : gen->name); + fprintf(f, "name == NULL ? "(anonymous)" : gen->name); + if(gen->name == NULL){ + fprintf(f, ":%x>", gen->handler); + } } else if(gen->type == SN_TYPE_PTR) { fprintf(f, "", gen->ptr); }