1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-25 16:00:27 +00:00

(os/cpu-count) should not be defined at all with JANET_REDUCED_OS

This commit is contained in:
Charlotte Koch 2022-12-15 20:16:43 -08:00
parent 03c496bdd8
commit 23de953fbd

View File

@ -209,6 +209,8 @@ JANET_CORE_FN(os_exit,
return janet_wrap_nil();
}
#ifndef JANET_REDUCED_OS
JANET_CORE_FN(os_cpu_count,
"(os/cpu-count &opt dflt)",
"Get an approximate number of CPUs available on for this process to use. If "
@ -250,7 +252,6 @@ JANET_CORE_FN(os_cpu_count,
#endif
}
#ifndef JANET_REDUCED_OS
#ifndef JANET_NO_PROCESSES