start working on oop runtime
This commit is contained in:
9
src/runtime/objects/object.c
Normal file
9
src/runtime/objects/object.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "object.h"
|
||||
#include "../../memory.h"
|
||||
|
||||
ArgonObject* init_argon_object() {
|
||||
ArgonObject *object = ar_alloc(sizeof(ArgonObject));
|
||||
object->type = TYPE_OBJECT;
|
||||
object->cls = object;
|
||||
object->fields = createHashmap(8);
|
||||
}
|
||||
Reference in New Issue
Block a user