%SYN_XNAME

Get a function name from its segment address

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX

 

name = %SYN_XNAME(address)

Return value

name

The name of the function.

Arguments

address

The address of the segment for which you want to return a name. This address may be returned from %XADDR.

Discussion

%SYN_XNAME returns a function name for the specified segment address.

One use for this routine is in debugging areas of your code in which you have stored routine addresses. The D_METHOD subfunction of %E_INFO returns the address of the routine registered for the method specified. You can use %SYN_XNAME to translate that address into a routine name for debugging or informational purposes.

Examples

record
    adr         ,i4
    name        ,a30
proc
    adr = %xaddr("DATE")
    name = %syn_xname(adr)
    writes(1, "system error: = "+%hex(%syserr))