Extracting the procedure name inside corresponding C function

7 views
Skip to first unread message

Sanskar Jaiswal

unread,
Mar 11, 2025, 5:09:14 AMMar 11
to chibi-scheme
Is it possible to extract the name of the procedure inside its callback C function?
I know that the self arg the callback receives is the procedure object. But I couldn't find a way to extract the procedure's name from the object. 

Thanks
Sanskar

Alex Shinn

unread,
Mar 11, 2025, 5:12:41 AMMar 11
to chibi-...@googlegroups.com
Hi Sanskar,

You want something like:

self == NULL ? "NULL" : sexp_opcodep(self) ? sexp_opcode_name(self) : sexp_bytecode_name(sexp_procedure_code(self))

--
Alex

--
You received this message because you are subscribed to the Google Groups "chibi-scheme" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chibi-scheme...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/chibi-scheme/aacb6252-c9bf-4b9e-8fa4-314a96bdc2b3n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages