Gavin Ray
04/12/2021, 1:52 AM@cdecl("name")
or something similar I can use for controlling the name of an exported Kotlin function in a DLL?
I have to create a DLL with a particular entrypoint function name (loaded by name, by a third-party application) and currently the only solution I can think of is to create a wrapper C file like:
__declspec(dllexport) int Entrypoint(_args) {
kotlinmain(_args)
}
JoakimForslund
04/12/2021, 1:40 PM@CName(externName = "DllMethodName")
@SymbolName("DllMethodName")
Should be enoughJoakimForslund
04/12/2021, 1:41 PMGavin Ray
04/12/2021, 2:11 PM