This commit is contained in:
Andre Wagner
2026-05-16 15:00:00 -05:00
parent d4aa83869c
commit df8edb549d
7 changed files with 83 additions and 13 deletions

View File

@@ -46,6 +46,11 @@ VALUE create_value_nil(void)
return (VALUE) { .type = TT_NIL };
}
VALUE create_value_from_bool(bool b)
{
return b ? create_value_integer(1) : create_value_integer(0);
}
VALUE create_value_integer(int32_t v)
{
return (VALUE) { .type = TT_INTEGER, .v = { .i = v } };