cpu.go 254 B

123456789101112131415161718
  1. // TODO configuration support
  2. package al
  3. /*
  4. #include <stdlib.h>
  5. #include <allegro5/allegro.h>
  6. #include "helpers.h"
  7. */
  8. import "C"
  9. func CPUCount() int {
  10. return int(C.al_get_cpu_count())
  11. }
  12. func RamSize() int {
  13. return int(C.al_get_ram_size())
  14. }