1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#define PAGE_UP KEY_PPAGE
#define PAGE_DOWN KEY_NPAGE
#define PLAYER_H 1
//#define STR(v) ##v
#define DEFAULT_CREATE_DESTROY_H(prefix) \
struct prefix * prefix ## _create(); \
void prefix ## _destroy(struct prefix * this);
#define DEFAULT_CREATE_DESTROY(prefix) \
struct prefix * prefix ## _create() { \
const int size = sizeof(struct prefix); \
struct prefix * newValue = malloc(size); \
prefix ## _init(newValue); \
return newValue; \
} \
void prefix ## _destroy(struct prefix * this) { \
prefix ## _destroyMembers(this); \
free(this); \
}
//const float app_version = 1.0;