www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Get a string of a function name from a function pointer?

reply SauceKode <sdfff dfads.com> writes:
I need to pass a group of (C) function pointers to another 
language from D... is there a way to derrive a name from a 
function pointer? Or do I have to manually list out the names?
Jul 10
parent =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 07/10/2017 05:26 AM, SauceKode wrote:
 I need to pass a group of (C) function pointers to another language from
 D... is there a way to derrive a name from a function pointer? Or do I
 have to manually list out the names?
libunwind should be able to provide that functionality. Otherwise, no, the function pointer itself does not contain any additional information. Ali
Jul 10