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