tomschrot
11/19/2017, 11:08 AMAttila Nyers
11/19/2017, 6:48 PMSimone Civetta
11/20/2017, 11:50 AMSergey Rubanov
11/20/2017, 6:11 PMdsgryazin
11/21/2017, 3:39 PMAppDelegate.h
+ AppDelegate.m
files with stub implementation in @implementation AppDelegate
we also have AppDelegate.kt:
class AppDelegate : UIResponder(), UIApplicationDelegateProtocol
override fun init() = initBy(AppDelegate())
Please, correct my understandings in thread >Andrew
11/21/2017, 5:19 PMAndrew
11/21/2017, 5:54 PMktw
11/22/2017, 8:25 AMelizarov
11/22/2017, 3:13 PMkotlinx-coroutines-core
APIs that is available for all the platforms and can be used from the common code (the code that is shared between platforms)Gronek
11/22/2017, 4:43 PMGronek
11/22/2017, 5:54 PMuliluckas
11/23/2017, 8:00 PMuliluckas
11/23/2017, 8:02 PMsnowe
11/24/2017, 12:51 AMgoncalossilva
11/26/2017, 12:30 AMcommon
module. I’m also assuming that the whole expect
/ actual
workflow wouldn’t work here, and that stdlib
wouldn’t be available. Is this possible?sdeleuze
11/26/2017, 11:03 AMTarget WASM32 is not available on the LINUX host
. Any chance to support Linux in next release ?sdeleuze
11/26/2017, 11:28 AMkenkyee
11/26/2017, 12:05 PMGronek
11/26/2017, 6:51 PMSimone Civetta
11/27/2017, 10:33 AMkevin.cianfarini
11/27/2017, 5:25 PMkevin.cianfarini
11/27/2017, 7:45 PMjb
11/27/2017, 7:53 PMGauthierPLM
11/28/2017, 6:26 AMjb
11/28/2017, 3:14 PMGauthierPLM
11/28/2017, 3:21 PMlouiscad
11/28/2017, 7:28 PMGauthierPLM
11/29/2017, 4:19 AMapatrida
11/29/2017, 4:05 PMr4zzz4k
11/29/2017, 4:11 PMclang_visitChildren
which expects callback having C structs passed by values as parameters. When trying to use it as is, I'm getting the following error: type CValue<CXCursor> is not supported in callback signature
.
Do I understand correctly that the following workaround is the only way to go for now?r4zzz4k
11/29/2017, 4:11 PMclang_visitChildren
which expects callback having C structs passed by values as parameters. When trying to use it as is, I'm getting the following error: type CValue<CXCursor> is not supported in callback signature
.
Do I understand correctly that the following workaround is the only way to go for now?svyatoslav.scherbina
11/30/2017, 7:18 AM.def
file after `---`:
https://github.com/JetBrains/kotlin-native/blob/master/INTEROP.md#adding-custom-declarations
Also you can make CallbackWithPtrs
receive some user data using the following:
...
// [C++] My wrapper
typedef void (*CallbackWithPtrs) (Input*, void* userData);
struct WrapperCallbackUserData {
CallbackWithPtrs callback;
void* userData;
}
void WrapperCallback(Input input, void* userData) {
WrapperCallbackUserData* data = (WrapperCallbackUserData*) userData;
CallbackWithPtrs actualCallback = data->callback;
actualCallback(&input, data->userData);
}
void wrapperVisitor(CallbackWithPtrs callback, void* userData) {
struct WrapperCallbackUserData data;
data.callback = callback;
data.userData = userData;
visitor(WrapperCallback, (void*) &data);
}
// [Kotlin/Native] Wrapper usage
wrapperVisitor(staticCFunction({ input: CPointer<Input>, userData: COpaquePointer ->
// use input.pointed
}))
r4zzz4k
11/30/2017, 12:08 PM.def
file.
Yeah, I've decided to skip userData
from example for simplicity. I'm going to use it with StableObjPtr
in my own code, of course.
Thank you very much!