new built-in variables for each type

This commit is contained in:
cozis
2022-08-14 13:04:53 +02:00
parent d24877c5f3
commit bc516f470a
26 changed files with 300 additions and 36 deletions
+5
View File
@@ -82,6 +82,11 @@ static TypeObject t_buffer_slice = {
#define THRESHOLD 128
TypeObject *Object_GetBufferType()
{
return &t_buffer;
}
_Bool Object_IsBuffer(Object *obj)
{
return obj->type == &t_buffer_slice || obj->type == &t_buffer;