Allow passing interop types to C API, refactoring.

This commit is contained in:
Nikolay Igotti
2018-01-18 16:21:00 +03:00
committed by Nikolay Igotti
parent 76834dc7ce
commit 1599eddfe1
3 changed files with 33 additions and 19 deletions
@@ -36,8 +36,8 @@ int main(void) {
printf("object = %d\n", __ kotlin.root.Codeable.asCode(object1));
topLevelFunctionVoidFromC(42);
__ kotlin.root.topLevelFunctionVoid(42);
topLevelFunctionVoidFromC(42, 0);
__ kotlin.root.topLevelFunctionVoid(42, 0);
printf("topLevel = %d %d\n", topLevelFunctionFromC(780, 3), __ kotlin.root.topLevelFunctionFromCShort(5, 2));
__ DisposeString(string);