2 #include "../src/util.h"
5 UwUVMValue uwuint_create(int value)
7 UwUVMValue vm_value = {
9 .data = malloc(sizeof(int))
11 *(int *) vm_value.data = value;
16 void *uwuint_copy(void *data)
18 int *copy = malloc(sizeof(*copy));
19 *copy = *(int *) data;
23 char *uwuint_print(void *data)
25 return asprintf_wrapper("%d", *(int *) data);
28 UwUVMType uwuint_type = {
31 .print = &uwuint_print,