Hi! Can anyone give me example of accessing librar...
# kotlin-native
r
Hi! Can anyone give me example of accessing library K/N `object`'s method from C code?
Copy code
object ExampleClass {
    fun helloWorld() = println("Hello World!!!")
}
Library's header
example_api.h
Copy code
typedef struct {
  example_KNativePtr pinned;
} example_kref_ExampleClass;
...
struct {
        example_KType* (*_type)(void);
        void (*helloWorld)(example_kref_ExampleClass thiz);
      } ExampleClass;
Where I can get
example_kref_ExampleClass thiz
?
o
this is not yet supported, I will try to fix it in 0.9