blob: 9ea665cea47c7695b48fdf9fd87c841b54621ce7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
Game *
game_create(void)
{
Game *const this = malloc(sizeof(Game));
if (this == NULL)
panic("%s", strerror(errno));
memset(this, 0, sizeof(*this));
game_init(this);
return this;
}
void
game_destroy(Game *this)
{
free(this);
}
|