Platform.isWindows.

This commit is contained in:
Bob Nystrom
2016-05-21 12:53:21 -07:00
parent 6002cc4d65
commit 2b0878ec6d
4 changed files with 12 additions and 0 deletions
+2
View File
@@ -1,6 +1,8 @@
class Platform {
foreign static isPosix
foreign static name
static isWindows { name == "Windows" }
}
class Process {
+2
View File
@@ -3,6 +3,8 @@ static const char* osModuleSource =
"class Platform {\n"
" foreign static isPosix\n"
" foreign static name\n"
"\n"
" static isWindows { name == \"Windows\" }\n"
"}\n"
"\n"
"class Process {\n"