]> Nishi Git Mirror - serenade.git/commitdiff
worky
authornishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Fri, 26 Apr 2024 05:21:26 +0000 (05:21 +0000)
committernishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Fri, 26 Apr 2024 05:21:26 +0000 (05:21 +0000)
git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@46 0f02c867-ac3d-714e-8a88-971ba1f6efcf

Serenade/util.c

index 2e09aa116118c5d8b143f23a67838e70ca52a9d2..cb0f7a43ae4b43083c072c33229789f8a8355da1 100644 (file)
@@ -57,7 +57,10 @@ void sn_print_to(FILE* f, struct sn_generic* gen) {
        } else if(gen->type == SN_TYPE_VOID) {
                fprintf(f, "<void>");
        } else if(gen->type == SN_TYPE_FUNCTION) {
-               fprintf(f, "<function %s>", gen->name == NULL ? "(anonymous)" : gen->name);
+               fprintf(f, "<function %s", gen->name == NULL ? "(anonymous)" : gen->name);
+               if(gen->name == NULL){
+                       fprintf(f, ":%x>", gen->handler);
+               }
        } else if(gen->type == SN_TYPE_PTR) {
                fprintf(f, "<pointer %x>", gen->ptr);
        }