runtime: kotlinNativeMain should return status code and main should return it to the system
(cherry picked from commit acef5ed7e2f7e1d9478d77a1d3405873a7537db1)
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
#include "Memory.h"
|
||||
|
||||
extern "C" void kotlinNativeMain();
|
||||
extern "C" int kotlinNativeMain();
|
||||
|
||||
int main() {
|
||||
InitMemory();
|
||||
kotlinNativeMain();
|
||||
return 0;
|
||||
return kotlinNativeMain();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user