From d00614ce1bfdcae1134a70ff5623e68f7d84fff7 Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Fri, 18 Nov 2016 12:18:53 +0300 Subject: [PATCH] to safe kotlin style main with return type Unit. Revert "runtime: kotlinNativeMain should return status code and main should return it to the system" This reverts commit 8161c8ddac31c8e5c72da959c209d25b1d44f8ab. --- runtime/src/main/cpp/launcher.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runtime/src/main/cpp/launcher.cpp b/runtime/src/main/cpp/launcher.cpp index 024382779c7..e84c2ef645e 100644 --- a/runtime/src/main/cpp/launcher.cpp +++ b/runtime/src/main/cpp/launcher.cpp @@ -1,8 +1,9 @@ #include "Memory.h" -extern "C" int kotlinNativeMain(); +extern "C" void kotlinNativeMain(); int main() { InitMemory(); - return kotlinNativeMain(); + kotlinNativeMain(); + return 0; }