bmk_cores_haiku.bmx 251 B

123456789101112131415161718
  1. SuperStrict
  2. Import "bmk_cores_haiku.c"
  3. Extern
  4. Function bmx_get_system_info_cpu_count:Int()
  5. End Extern
  6. Function GetCoreCount:Int()
  7. Global count:Int
  8. If Not count Then
  9. count = bmx_get_system_info_cpu_count()
  10. End If
  11. Return count
  12. End Function