2021-04-28 23:49:10 +02:00
|
|
|
// Please do not edit this file. It has been generated automatically
|
|
|
|
|
// from `src/module/os.wren` using `util/wren_to_c_string.py`
|
|
|
|
|
|
feat: rename process module to os and add Platform class with name and isPosix methods
Rename the "process" module to "os" across all source files, documentation, tests, and build configuration. Add a new Platform class to the os module with static methods `name` (returns OS string like "Windows", "Linux", "OS X", "iOS", "Unix", "POSIX", or "Unknown") and `isPosix` (returns bool indicating POSIX compliance). Update all import paths from "process" to "os" in test files and module registrations. Move process.c/h to os.c/h, rename processSetArguments to osSetArguments, and regenerate the os.wren.inc bytecode source. Add documentation pages for the os module and Platform class.
2016-05-21 21:44:17 +02:00
|
|
|
static const char* osModuleSource =
|
|
|
|
|
"class Platform {\n"
|
|
|
|
|
" foreign static isPosix\n"
|
|
|
|
|
" foreign static name\n"
|
2016-05-21 21:53:21 +02:00
|
|
|
"\n"
|
|
|
|
|
" static isWindows { name == \"Windows\" }\n"
|
feat: rename process module to os and add Platform class with name and isPosix methods
Rename the "process" module to "os" across all source files, documentation, tests, and build configuration. Add a new Platform class to the os module with static methods `name` (returns OS string like "Windows", "Linux", "OS X", "iOS", "Unix", "POSIX", or "Unknown") and `isPosix` (returns bool indicating POSIX compliance). Update all import paths from "process" to "os" in test files and module registrations. Move process.c/h to os.c/h, rename processSetArguments to osSetArguments, and regenerate the os.wren.inc bytecode source. Add documentation pages for the os module and Platform class.
2016-05-21 21:44:17 +02:00
|
|
|
"}\n"
|
|
|
|
|
"\n"
|
|
|
|
|
"class Process {\n"
|
|
|
|
|
" // TODO: This will need to be smarter when wren supports CLI options.\n"
|
2021-04-25 20:03:18 +02:00
|
|
|
" static arguments { allArguments.count >= 2 ? allArguments[2..-1] : [] }\n"
|
feat: rename process module to os and add Platform class with name and isPosix methods
Rename the "process" module to "os" across all source files, documentation, tests, and build configuration. Add a new Platform class to the os module with static methods `name` (returns OS string like "Windows", "Linux", "OS X", "iOS", "Unix", "POSIX", or "Unknown") and `isPosix` (returns bool indicating POSIX compliance). Update all import paths from "process" to "os" in test files and module registrations. Move process.c/h to os.c/h, rename processSetArguments to osSetArguments, and regenerate the os.wren.inc bytecode source. Add documentation pages for the os module and Platform class.
2016-05-21 21:44:17 +02:00
|
|
|
"\n"
|
|
|
|
|
" foreign static allArguments\n"
|
2020-06-14 06:12:34 +02:00
|
|
|
" foreign static cwd\n"
|
2021-04-28 23:51:23 +02:00
|
|
|
" foreign static pid\n"
|
|
|
|
|
" foreign static ppid\n"
|
|
|
|
|
" foreign static version\n"
|
feat: rename process module to os and add Platform class with name and isPosix methods
Rename the "process" module to "os" across all source files, documentation, tests, and build configuration. Add a new Platform class to the os module with static methods `name` (returns OS string like "Windows", "Linux", "OS X", "iOS", "Unix", "POSIX", or "Unknown") and `isPosix` (returns bool indicating POSIX compliance). Update all import paths from "process" to "os" in test files and module registrations. Move process.c/h to os.c/h, rename processSetArguments to osSetArguments, and regenerate the os.wren.inc bytecode source. Add documentation pages for the os module and Platform class.
2016-05-21 21:44:17 +02:00
|
|
|
"}\n";
|