mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01: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();
|
||||
TypeInfoDeclaration *getTypeInfoDeclaration();
|
||||
int hasPointers();
|
||||
int builtinTypeInfo();
|
||||
|
||||
type *toCtype();
|
||||
|
||||
|
||||
@@ -224,6 +224,11 @@ int TypeDArray::builtinTypeInfo()
|
||||
return next->isTypeBasic() != NULL;
|
||||
}
|
||||
|
||||
int TypeClass::builtinTypeInfo()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* ========================================================================= */
|
||||
|
||||
/***************************************
|
||||
|
||||
Reference in New Issue
Block a user