mirror of
https://github.com/janet-lang/janet
synced 2025-07-04 11:02:55 +00:00
os/which can return :dragonfly
While here, document that :bsd is another possible return value.
This commit is contained in:
parent
8b16b9b246
commit
575af763f6
@ -126,6 +126,8 @@ JANET_CORE_FN(os_which,
|
|||||||
"* :freebsd\n\n"
|
"* :freebsd\n\n"
|
||||||
"* :openbsd\n\n"
|
"* :openbsd\n\n"
|
||||||
"* :netbsd\n\n"
|
"* :netbsd\n\n"
|
||||||
|
"* :dragonfly\n\n"
|
||||||
|
"* :bsd\n\n"
|
||||||
"* :posix - A POSIX compatible system (default)\n\n"
|
"* :posix - A POSIX compatible system (default)\n\n"
|
||||||
"May also return a custom keyword specified at build time.") {
|
"May also return a custom keyword specified at build time.") {
|
||||||
janet_fixarity(argc, 0);
|
janet_fixarity(argc, 0);
|
||||||
@ -150,6 +152,8 @@ JANET_CORE_FN(os_which,
|
|||||||
return janet_ckeywordv("netbsd");
|
return janet_ckeywordv("netbsd");
|
||||||
#elif defined(__OpenBSD__)
|
#elif defined(__OpenBSD__)
|
||||||
return janet_ckeywordv("openbsd");
|
return janet_ckeywordv("openbsd");
|
||||||
|
#elif defined(__DragonFly__)
|
||||||
|
return janet_ckeywordv("dragonfly");
|
||||||
#elif defined(JANET_BSD)
|
#elif defined(JANET_BSD)
|
||||||
return janet_ckeywordv("bsd");
|
return janet_ckeywordv("bsd");
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user