2025-04-11 13:40:54 +01:00
|
|
|
#include <mie/const.h>
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
2025-04-13 18:34:02 +01:00
|
|
|
static struct mie_type *get_type(struct mie_value *v)
|
2025-04-11 13:40:54 +01:00
|
|
|
{
|
2025-04-13 18:34:02 +01:00
|
|
|
struct mie_const *c = MIE_CONST(v);
|
|
|
|
|
return c->c_type;
|
2025-04-11 13:40:54 +01:00
|
|
|
}
|
|
|
|
|
|
2025-04-13 18:34:02 +01:00
|
|
|
const struct mie_value_type const_value_type = {
|
|
|
|
|
.t_id = MIE_VALUE_CONST,
|
|
|
|
|
.t_get_type = get_type,
|
|
|
|
|
};
|