#include <windows.h> | |
#include <nt.h> | |
//#define ExitProcess(S) NtTerminateProcess((void *)-1, S) | |
//void ExitProcess(int) __attribute__((noreturn)); | |
void exit(int status){ | |
NtTerminateProcess((void *)-1, status); | |
//ExitProcess(status); | |
#ifdef __GNUC__ | |
//__builtin_unreached(); | |
#endif | |
exit(status); // Tell compiler don't make ret | |
while(1); | |
} |