shithub: npe

ref: 1882a2e5945c9003187dd2b9a897572eee32a9e7
dir: /libnpe/_main.c/

View raw version
#include <u.h>
#include <libc.h>
#include <thread.h>

int npe_main_renamed(int argc, char *argv[]);

int mainstacksize = 256*1024;

void
threadmain(int argc, char *argv[])
{
	setfcr(getfcr() & ~(FPINVAL|FPOVFL));

	argv0 = *argv; /* for sdl to set at least some kind of label */

	threadexitsall(npe_main_renamed(argc, argv) == 0 ? nil : "error");
}