#if defined(plat_windows) /* Because Windows is made by retards and * windows.h overlaps with some of my shit. */ #define WIN32_LEAN_AND_MEAN #include #include #include void platform_log(const char* message, ...) { va_list args; va_start(args, message); vfprintf(stdout, message, args); va_end(args); } void platform_err(const char* message, ...) { va_list args; HANDLE console; console = GetStdHandle(STD_OUTPUT_HANDLE); va_start(args, message); SetConsoleTextAttribute(console, 4); vfprintf(stderr, message, args); SetConsoleTextAttribute(console, 7); va_end(args); } void platform_abort(int code) { #if defined(DEBUG) && defined(plat_x86) __asm__("int3;"); #else exit(code); #endif } #endif /* Because empty translation units aren't allowed. */ void malware_dummy_() {}