this allows value get_type callbacks to use mie_ctx to obtain mie_type pointers, rather than having to define their own static versions of the type structs.
12 lines
225 B
C
12 lines
225 B
C
#include <mie/type.h>
|
|
|
|
static struct mie_type *get_type(struct mie_value *v, struct mie_ctx *ctx)
|
|
{
|
|
return MIE_TYPE(v);
|
|
}
|
|
|
|
const struct mie_value_type type_value_type = {
|
|
.t_id = MIE_VALUE_TYPE,
|
|
.t_get_type = get_type,
|
|
};
|