hoshi-lang dev
Yet another programming language
Loading...
Searching...
No Matches
rtti.cpp
Go to the documentation of this file.
1#include "rtti.h"
3
4
6 auto rtti_entry = rtti_table[type_id_object->value];
8 obj->gc_refcount = 1;
9
10 obj->type_name_object = (char *)rtti_entry.type_name;
11
12 obj->type_enum_object = (long long)rtti_entry.type_enum;
13
14 obj->type_affiliate_module_object = (long long)rtti_entry.type_affiliate_module;
15
16 obj->type_index_object = (long long)rtti_entry.type_index;
17
18 obj->is_array_object = (long long)rtti_entry.is_array;
19 return obj;
20}
void * runtime_object_alloc(unsigned long size)
Definition memory.cpp:96
YoiTypeInfoObject * rtti_object_alloc(YoiIntegerObject *type_id_object)
Definition rtti.cpp:5
YoiTypeInfo rtti_table[]
Definition rtti.h:56
long long value
Definition memory.h:28
const char * type_name
Definition rtti.h:38