Commit b201329e authored by Vivien Kraus's avatar 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
......@@ -52,6 +52,7 @@ tarot_solo_dup (const TarotSolo * source)
void
tarot_solo_free (TarotSolo * solo)
{
solo_destruct (solo);
free (solo);
}
......
......@@ -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);
......
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment