cpu.go 277 B

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