From 9556e80e5cc2dda77b1af30c27d4c8c4ed99ca75 Mon Sep 17 00:00:00 2001 From: nishi Date: Fri, 26 Apr 2024 05:21:26 +0000 Subject: [PATCH] worky git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@46 0f02c867-ac3d-714e-8a88-971ba1f6efcf --- Serenade/util.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 2.43.0