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 8161c8ddac.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#include "Memory.h"
|
||||
|
||||
extern "C" int kotlinNativeMain();
|
||||
extern "C" void kotlinNativeMain();
|
||||
|
||||
int main() {
|
||||
InitMemory();
|
||||
return kotlinNativeMain();
|
||||
kotlinNativeMain();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user