1
0
mirror of https://github.com/janet-lang/janet synced 2026-05-29 16:52:16 +00:00

9front: support (os/cpu-count)

This commit is contained in:
Noam Preil
2025-12-12 04:17:20 +00:00
parent dc52242d36
commit 352935596a
+2
View File
@@ -354,6 +354,8 @@ JANET_CORE_FN(os_cpu_count,
return dflt;
}
return janet_wrap_integer(result);
#elif defined(JANET_PLAN9)
return janet_wrap_integer(atoi(getenv("NPROC")));
#else
return dflt;
#endif