keep COOK_DISABLED
parent
0dcbce153b
commit
136b87ab1c
|
@ -14061,7 +14061,11 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#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
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
@ -14159,6 +14163,12 @@ extern "C" {
|
|||
#define ifdef_retail ifdef_false
|
||||
#endif
|
||||
|
||||
#if COOK_DISABLED
|
||||
#define ifdef_nocook ifdef_true
|
||||
#else
|
||||
#define ifdef_nocook ifdef_false
|
||||
#endif
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// 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);
|
||||
ifdef(ems, num_jobs = 0);
|
||||
ifdef(retail, num_jobs = 0);
|
||||
ifdef(nocook, num_jobs = 0);
|
||||
return clampi(num_jobs, 0, max_jobs);
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,11 @@
|
|||
#endif
|
||||
|
||||
#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
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
@ -128,6 +132,12 @@
|
|||
#define ifdef_retail ifdef_false
|
||||
#endif
|
||||
|
||||
#if COOK_DISABLED
|
||||
#define ifdef_nocook ifdef_true
|
||||
#else
|
||||
#define ifdef_nocook ifdef_false
|
||||
#endif
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// new C keywords
|
||||
|
||||
|
|
|
@ -800,6 +800,7 @@ int cook_jobs() {
|
|||
int num_jobs = optioni("--cook-jobs", maxf(1.15,app_cores()) * 1.75), max_jobs = countof(jobs);
|
||||
ifdef(ems, num_jobs = 0);
|
||||
ifdef(retail, num_jobs = 0);
|
||||
ifdef(nocook, num_jobs = 0);
|
||||
return clampi(num_jobs, 0, max_jobs);
|
||||
}
|
||||
|
||||
|
|
|
@ -4632,6 +4632,7 @@ int cook_jobs() {
|
|||
int num_jobs = optioni("--cook-jobs", maxf(1.15,app_cores()) * 1.75), max_jobs = countof(jobs);
|
||||
ifdef(ems, num_jobs = 0);
|
||||
ifdef(retail, num_jobs = 0);
|
||||
ifdef(nocook, num_jobs = 0);
|
||||
return clampi(num_jobs, 0, max_jobs);
|
||||
}
|
||||
|
||||
|
|
12
engine/v4k.h
12
engine/v4k.h
|
@ -128,7 +128,11 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#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
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
@ -226,6 +230,12 @@ extern "C" {
|
|||
#define ifdef_retail ifdef_false
|
||||
#endif
|
||||
|
||||
#if COOK_DISABLED
|
||||
#define ifdef_nocook ifdef_true
|
||||
#else
|
||||
#define ifdef_nocook ifdef_false
|
||||
#endif
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// new C keywords
|
||||
|
||||
|
|
Loading…
Reference in New Issue