added not operator

This commit is contained in:
cozis
2021-12-08 13:20:34 +01:00
parent 51d744ef2e
commit dbf1c325b0
10 changed files with 216 additions and 1 deletions
+8
View File
@@ -2,12 +2,20 @@
#include "../utils/defs.h"
#include "objects.h"
static _Bool op_eql(Object *self, Object *other);
TypeObject t_type = {
.base = (Object) { .type = &t_type, .flags = Object_STATIC },
.name = "type",
.size = sizeof (TypeObject),
.op_eql = op_eql,
};
static _Bool op_eql(Object *self, Object *other)
{
return self == other;
}
const char *Object_GetName(const Object *obj)
{
assert(obj != NULL);