mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 15:43:01 +00:00 
			
		
		
		
	Merge pull request #1052 from dressupgeekout/cpu_count_reduced_os
(os/cpu-count) should not be defined at all with JANET_REDUCED_OS
This commit is contained in:
		| @@ -209,6 +209,8 @@ JANET_CORE_FN(os_exit, | |||||||
|     return janet_wrap_nil(); |     return janet_wrap_nil(); | ||||||
| } | } | ||||||
|  |  | ||||||
|  | #ifndef JANET_REDUCED_OS | ||||||
|  |  | ||||||
| JANET_CORE_FN(os_cpu_count, | JANET_CORE_FN(os_cpu_count, | ||||||
|               "(os/cpu-count &opt dflt)", |               "(os/cpu-count &opt dflt)", | ||||||
|               "Get an approximate number of CPUs available on for this process to use. If " |               "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 | #endif | ||||||
| } | } | ||||||
|  |  | ||||||
| #ifndef JANET_REDUCED_OS |  | ||||||
|  |  | ||||||
| #ifndef JANET_NO_PROCESSES | #ifndef JANET_NO_PROCESSES | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Calvin Rose
					Calvin Rose