new built-in variables for each type
This commit is contained in:
@@ -84,6 +84,11 @@ static long long int to_int(Object *obj, Error *err)
|
||||
return ((IntObject*) obj)->val;
|
||||
}
|
||||
|
||||
TypeObject *Object_GetIntType()
|
||||
{
|
||||
return &t_int;
|
||||
}
|
||||
|
||||
Object *Object_FromInt(long long int val, Heap *heap, Error *error)
|
||||
{
|
||||
assert(heap != NULL);
|
||||
|
||||
Reference in New Issue
Block a user