Determine the address of the executable function for a given function name.

Determine the address of the executable function for a given function name.

Please note the following when using this function:

Name Type Default Description
Return int   Not 0 : address of the executable function in memory
0 : Function not found
funcname char* - Name of a function
float my_func (float f)
{
    return f*2.0;
}
int test (char * func_name, float f) { int fn = reflection (func_name);
if (fn) showmessage ("%s (%f) = %f", func_name, f, fn (f)); else showmessage ("Function %s is not defined", func_name); return 0; }
int main () { test ("sin", 30.0); test ("my_func", 30.0); test ("sdjhfg", 30.0);
return 0; }

Since
v4.1.6 R26411, 12. Dec 2019

Available
priint:comet InDesign® Plug-Ins, comet_pdf, Illustrator

See Also
symname

Alphabetic index HTML hierarchy of classes or Java