src/util.c

changeset 181
fa550b550072
parent 178
d581ba87fe2a
--- a/src/util.c	Sat Jul 05 23:06:07 2025 +0200
+++ b/src/util.c	Sat Jul 05 23:08:56 2025 +0200
@@ -31,8 +31,7 @@
 #include <inttypes.h>
 #include <assert.h>
 
-cxmutstr asc_util_gen_name(void *obj, const char *type) {
-    if (type == NULL) type = "object";
+cxmutstr asc_util_gen_name(void *obj) {
     assert(obj != NULL);
-    return cx_asprintf("%s_%" PRIxPTR, type, (uintptr_t)obj);
+    return cx_asprintf("%" PRIxPTR, (uintptr_t)obj);
 }

mercurial