Make basetype take a free function.
This commit is contained in:
@@ -2,9 +2,11 @@
|
||||
#include "util.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
void libab_basetype_init(libab_basetype* basetype, int n,
|
||||
void libab_basetype_init(libab_basetype* basetype,
|
||||
void (*free_function)(void*), int n,
|
||||
const libab_basetype_param params[]) {
|
||||
basetype->params = params;
|
||||
basetype->count = n;
|
||||
basetype->free_function = free_function;
|
||||
}
|
||||
void libab_basetype_free(libab_basetype* basetype) {}
|
||||
|
||||
Reference in New Issue
Block a user