What is replacement for jl_typeof in the library?

The libjulia relocatable library has no jl_typeof anymore. From the sources I see that it was replaced by a preprocessor macro. Is there a substitute usable from language bindings?

After investigating it further, this looks like a bug. Actually the macOS version 1.8.2 misses all API function declared using the kludge:

JL_DLLEXPORT jl_value_t *(jl_typeof)(jl_value_t *v)
{
return jl_typeof(v);
}

[placing macro in parenthesis to prevent macro expansion, I suppose]

It is not just jl_typeof all similar declarations produce no export.

P.S. I did not check Windows or Linux distributions. They might be broken as well.

1 Like