fix experimental separation of test-only code

This commit is contained in:
Enno Rehling 2016-03-24 22:32:29 +01:00
parent 547532bc63
commit 5c9aaa6245
1 changed files with 3 additions and 3 deletions

View File

@ -35,10 +35,7 @@ extern "C" {
bool is_migrant(struct unit *u);
int study_cost(struct unit *u, skill_t talent);
#ifndef NO_TESTS
typedef void(*learn_fun)(struct unit *u, skill_t sk, int days);
void inject_learn(learn_fun fun);
#endif
#define STUDYDAYS 30
void learn_skill(struct unit *u, skill_t sk, int days);
@ -57,6 +54,9 @@ extern "C" {
extern const struct attrib_type at_learning;
#ifndef NO_TESTS
void inject_learn(learn_fun fun);
#endif
#ifdef __cplusplus
}