aboutsummaryrefslogblamecommitdiffstats
path: root/libgamma_partition_destroy.c
blob: 8b95be557d2e32cd4739b0bc99b5a380c96c2b7e (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                         
                                                                          

                                     
                             








                                                            
/* See LICENSE file for copyright and license details. */
#include "common.h"


/**
 * Release all resources held by a partition state
 * 
 * @param  this  The partition state
 */
void
libgamma_partition_destroy(struct libgamma_partition_state *restrict this)
{
	switch (this->site->method) {
#define X(CONST, CNAME, ...)\
	case CONST:\
		libgamma_##CNAME##_partition_destroy(this);\
		break;
	LIST_AVAILABLE_METHODS(X)
#undef X
	default:
		break;
	}
}