Handle lambda argument of staticCFunction

This commit is contained in:
Svyatoslav Scherbina
2017-04-21 12:51:51 +03:00
committed by SvyatoslavScherbina
parent c6ad4c3307
commit ea2d7cbf01
3 changed files with 43 additions and 13 deletions
+3 -1
View File
@@ -275,7 +275,9 @@ methods available:
### Callbacks ###
To convert Kotlin function to pointer to C function,
`staticCFunction(::kotlinFunction)` can be used.
`staticCFunction(::kotlinFunction)` can be used. It is also allowed to provide
the lambda instead of function reference. The function or lambda must not
capture any values.
Note that some function types are not supported currently. For example,
it is not possible to get pointer to function that receives or returns structs