Hey guys, I'm trying to pass a function reference ...
# kotlin-native
s
Hey guys, I'm trying to pass a function reference to a C callback. The callback itself works by using
staticCFunction
, but I can't figure out how to pass a function reference to it. I can't use a
DetachedObjectGraph
as the function reference is externally referenced, and using a
StableRef
throws an
IncorrectDereferenceException
. Any ideas?