start working on oop runtime
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
// runtime
|
||||
#include "runtime/objects/type/type.h"
|
||||
|
||||
void *checked_malloc(size_t size) {
|
||||
void *ptr = malloc(size);
|
||||
if (!ptr) {
|
||||
@@ -30,6 +33,7 @@ void gmp_gc_free(void *ptr, size_t size) {
|
||||
void ar_memory_init() {
|
||||
GC_INIT();
|
||||
mp_set_memory_functions(GC_malloc, gmp_gc_realloc, gmp_gc_free);
|
||||
init_type_obj();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user