소스 검색

use defines instead of value

use defines instead of values for the park_or_pin variable
Henrik Holst 1 년 전
부모
커밋
740a82a761
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      common/common-cpu.h

+ 4 - 1
common/common-cpu.h

@@ -31,10 +31,13 @@ POSSIBILITY OF SUCH DAMAGE.
 
 #pragma once
 
+#define IS_CPU_PARK 0
+#define IS_CPU_PIN  1
+
 /* Storage for CPU info*/
 struct GameModeCPUInfo {
 	size_t num_cpu;
-	int park_or_pin; /* 0 to park 1 to pin */
+	int park_or_pin;
 	cpu_set_t *online;
 	cpu_set_t *to_keep;
 };