mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-30 17:19:24 +02:00
Provided overload to TypeClass::builtinTypeInfo to return true.
Shouldn't almost all types have a builtin typeinfo? Maybe it'd be better to have the default at true and only overload typedef and friends.
This commit is contained in:
@@ -640,6 +640,7 @@ struct TypeClass : Type
|
|||||||
int checkBoolean();
|
int checkBoolean();
|
||||||
TypeInfoDeclaration *getTypeInfoDeclaration();
|
TypeInfoDeclaration *getTypeInfoDeclaration();
|
||||||
int hasPointers();
|
int hasPointers();
|
||||||
|
int builtinTypeInfo();
|
||||||
|
|
||||||
type *toCtype();
|
type *toCtype();
|
||||||
|
|
||||||
|
|||||||
@@ -224,6 +224,11 @@ int TypeDArray::builtinTypeInfo()
|
|||||||
return next->isTypeBasic() != NULL;
|
return next->isTypeBasic() != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int TypeClass::builtinTypeInfo()
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* ========================================================================= */
|
/* ========================================================================= */
|
||||||
|
|
||||||
/***************************************
|
/***************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user