mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
18 lines
365 B
Objective-C
18 lines
365 B
Objective-C
#import <Cocoa/Cocoa.h>
|
|
|
|
static void SetupRuntimeOptions(int argc, const char *argv[])
|
|
{
|
|
if (getenv("MOZ_UNBUFFERED_STDIO")) {
|
|
printf("stdout and stderr unbuffered\n");
|
|
setbuf(stdout, 0);
|
|
setbuf(stderr, 0);
|
|
}
|
|
}
|
|
|
|
int main(int argc, const char *argv[])
|
|
{
|
|
SetupRuntimeOptions(argc, argv);
|
|
|
|
return NSApplicationMain(argc, argv);
|
|
}
|