Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tarot
tarot
Commits
b201329e
Commit
b201329e
authored
Dec 12, 2019
by
Vivien Kraus
Browse files
Add a destructor for the solo game
The next step is to give the solo its own AI implementation.
parent
845c0180
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/libtarot/solo/solo.c
View file @
b201329e
...
...
@@ -52,6 +52,7 @@ tarot_solo_dup (const TarotSolo * source)
void
tarot_solo_free
(
TarotSolo
*
solo
)
{
solo_destruct
(
solo
);
free
(
solo
);
}
...
...
src/libtarot/solo/tarot/solo_private.h
View file @
b201329e
...
...
@@ -27,6 +27,7 @@ extern "C"
#endif
/* __cplusplus */
static
size_t
solo_construct
(
size_t
max_mem
,
char
*
mem_out
,
size_t
*
alignment
);
static
void
solo_destruct
(
TarotSolo
*
solo
);
static
void
solo_copy
(
TarotSolo
*
dest
,
const
TarotSolo
*
source
);
static
void
solo_copy_as
(
TarotSolo
*
dest
,
const
TarotSolo
*
source
,
TarotPlayer
who
);
...
...
src/libtarot/solo/tarot/solo_private_impl.h
View file @
b201329e
...
...
@@ -48,6 +48,12 @@ solo_construct (size_t max_mem, char *mem, size_t *alignment)
return
required
;
}
static
inline
void
solo_destruct
(
TarotSolo
*
solo
)
{
(
void
)
solo
;
}
static
inline
void
solo_copy
(
TarotSolo
*
dest
,
const
TarotSolo
*
source
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment