keep COOK_DISABLED

main
Dominik Madarász 2023-10-13 18:20:20 +02:00
parent 0dcbce153b
commit 136b87ab1c
5 changed files with 36 additions and 3 deletions

View File

@ -14061,7 +14061,11 @@ extern "C" {
#endif #endif
#ifndef ENABLE_RETAIL #ifndef ENABLE_RETAIL
#define ENABLE_RETAIL 0 #define ENABLE_RETAIL 0 // ifdef(retail, 1, 0) ///+
#endif
#ifndef COOK_DISABLED
#define COOK_DISABLED 0 // ifdef(nocook, 1, 0) ///+
#endif #endif
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
@ -14159,6 +14163,12 @@ extern "C" {
#define ifdef_retail ifdef_false #define ifdef_retail ifdef_false
#endif #endif
#if COOK_DISABLED
#define ifdef_nocook ifdef_true
#else
#define ifdef_nocook ifdef_false
#endif
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// new C keywords // new C keywords
@ -335607,6 +335617,7 @@ int cook_jobs() {
int num_jobs = optioni("--cook-jobs", maxf(1.15,app_cores()) * 1.75), max_jobs = countof(jobs); int num_jobs = optioni("--cook-jobs", maxf(1.15,app_cores()) * 1.75), max_jobs = countof(jobs);
ifdef(ems, num_jobs = 0); ifdef(ems, num_jobs = 0);
ifdef(retail, num_jobs = 0); ifdef(retail, num_jobs = 0);
ifdef(nocook, num_jobs = 0);
return clampi(num_jobs, 0, max_jobs); return clampi(num_jobs, 0, max_jobs);
} }

View File

@ -30,7 +30,11 @@
#endif #endif
#ifndef ENABLE_RETAIL #ifndef ENABLE_RETAIL
#define ENABLE_RETAIL 0 #define ENABLE_RETAIL 0 // ifdef(retail, 1, 0) ///+
#endif
#ifndef COOK_DISABLED
#define COOK_DISABLED 0 // ifdef(nocook, 1, 0) ///+
#endif #endif
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
@ -128,6 +132,12 @@
#define ifdef_retail ifdef_false #define ifdef_retail ifdef_false
#endif #endif
#if COOK_DISABLED
#define ifdef_nocook ifdef_true
#else
#define ifdef_nocook ifdef_false
#endif
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// new C keywords // new C keywords

View File

@ -800,6 +800,7 @@ int cook_jobs() {
int num_jobs = optioni("--cook-jobs", maxf(1.15,app_cores()) * 1.75), max_jobs = countof(jobs); int num_jobs = optioni("--cook-jobs", maxf(1.15,app_cores()) * 1.75), max_jobs = countof(jobs);
ifdef(ems, num_jobs = 0); ifdef(ems, num_jobs = 0);
ifdef(retail, num_jobs = 0); ifdef(retail, num_jobs = 0);
ifdef(nocook, num_jobs = 0);
return clampi(num_jobs, 0, max_jobs); return clampi(num_jobs, 0, max_jobs);
} }

View File

@ -4632,6 +4632,7 @@ int cook_jobs() {
int num_jobs = optioni("--cook-jobs", maxf(1.15,app_cores()) * 1.75), max_jobs = countof(jobs); int num_jobs = optioni("--cook-jobs", maxf(1.15,app_cores()) * 1.75), max_jobs = countof(jobs);
ifdef(ems, num_jobs = 0); ifdef(ems, num_jobs = 0);
ifdef(retail, num_jobs = 0); ifdef(retail, num_jobs = 0);
ifdef(nocook, num_jobs = 0);
return clampi(num_jobs, 0, max_jobs); return clampi(num_jobs, 0, max_jobs);
} }

View File

@ -128,7 +128,11 @@ extern "C" {
#endif #endif
#ifndef ENABLE_RETAIL #ifndef ENABLE_RETAIL
#define ENABLE_RETAIL 0 #define ENABLE_RETAIL 0 // ifdef(retail, 1, 0) ///+
#endif
#ifndef COOK_DISABLED
#define COOK_DISABLED 0 // ifdef(nocook, 1, 0) ///+
#endif #endif
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
@ -226,6 +230,12 @@ extern "C" {
#define ifdef_retail ifdef_false #define ifdef_retail ifdef_false
#endif #endif
#if COOK_DISABLED
#define ifdef_nocook ifdef_true
#else
#define ifdef_nocook ifdef_false
#endif
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// new C keywords // new C keywords