diff options
Diffstat (limited to 'src/print.c')
-rw-r--r-- | src/print.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/print.c b/src/print.c index 6f868ceff84..420e6f55b4c 100644 --- a/src/print.c +++ b/src/print.c @@ -1990,6 +1990,19 @@ print_object (Lisp_Object obj, Lisp_Object printcharfun, bool escapeflag) printchar ('>', printcharfun); break; +#ifdef HAVE_MODULES + case Lisp_Misc_User_Ptr: + { + print_c_string ("#<user-ptr ", printcharfun); + int i = sprintf (buf, "ptr=%p finalizer=%p", + XUSER_PTR (obj)->p, + XUSER_PTR (obj)->finalizer); + strout (buf, i, i, printcharfun); + printchar ('>', printcharfun); + break; + } +#endif + case Lisp_Misc_Finalizer: print_c_string ("#<finalizer", printcharfun); if (NILP (XFINALIZER (obj)->function)) |