1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-18 06:34:48 +00:00

os/which can return :dragonfly

While here, document that :bsd is another possible return value.
This commit is contained in:
Charlotte Koch 2023-03-07 06:45:31 -08:00
parent 8b16b9b246
commit 575af763f6

View File

@ -126,6 +126,8 @@ JANET_CORE_FN(os_which,
"* :freebsd\n\n"
"* :openbsd\n\n"
"* :netbsd\n\n"
"* :dragonfly\n\n"
"* :bsd\n\n"
"* :posix - A POSIX compatible system (default)\n\n"
"May also return a custom keyword specified at build time.") {
janet_fixarity(argc, 0);
@ -150,6 +152,8 @@ JANET_CORE_FN(os_which,
return janet_ckeywordv("netbsd");
#elif defined(__OpenBSD__)
return janet_ckeywordv("openbsd");
#elif defined(__DragonFly__)
return janet_ckeywordv("dragonfly");
#elif defined(JANET_BSD)
return janet_ckeywordv("bsd");
#else