Improve function types support in interop

* Support `typedef` to function type without pointer;
* Support 64-bit integers in function types;
* Generate opaque function type on JVM if not supported.

Fix other minor bugs.
This commit is contained in:
Svyatoslav Scherbina
2017-03-15 14:17:01 +07:00
committed by SvyatoslavScherbina
parent 397928b066
commit d1859dd280
2 changed files with 18 additions and 10 deletions
@@ -281,10 +281,12 @@ class CFunction<T : CFunctionType>(override val rawPtr: NativePtr) : CPointed
/**
* The pointer to [CFunction].
* TODO: remove.
*/
typealias CFunctionPointer<T> = CPointer<CFunction<T>>
/**
* The variable containing a [CFunctionPointer].
* TODO: remove.
*/
typealias CFunctionPointerVar<T> = CPointerVarWithValueMappedTo<CFunctionPointer<T>>