forked from github/server
fix experimental separation of test-only code
This commit is contained in:
parent
547532bc63
commit
5c9aaa6245
|
@ -35,10 +35,7 @@ extern "C" {
|
||||||
bool is_migrant(struct unit *u);
|
bool is_migrant(struct unit *u);
|
||||||
int study_cost(struct unit *u, skill_t talent);
|
int study_cost(struct unit *u, skill_t talent);
|
||||||
|
|
||||||
#ifndef NO_TESTS
|
|
||||||
typedef void(*learn_fun)(struct unit *u, skill_t sk, int days);
|
typedef void(*learn_fun)(struct unit *u, skill_t sk, int days);
|
||||||
void inject_learn(learn_fun fun);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define STUDYDAYS 30
|
#define STUDYDAYS 30
|
||||||
void learn_skill(struct unit *u, skill_t sk, int days);
|
void learn_skill(struct unit *u, skill_t sk, int days);
|
||||||
|
@ -57,6 +54,9 @@ extern "C" {
|
||||||
|
|
||||||
extern const struct attrib_type at_learning;
|
extern const struct attrib_type at_learning;
|
||||||
|
|
||||||
|
#ifndef NO_TESTS
|
||||||
|
void inject_learn(learn_fun fun);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue