mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-23 18:18:00 +02:00
Improved extern type constraints
This commit is contained in:
parent
99989d5472
commit
32cd6d8841
8 changed files with 280 additions and 85 deletions
|
@ -569,6 +569,11 @@ struct BfIRTypeData
|
|||
|
||||
TypeKind mKind;
|
||||
int mId;
|
||||
|
||||
operator bool()
|
||||
{
|
||||
return (mId != -1);
|
||||
}
|
||||
};
|
||||
|
||||
struct BfIRType : public BfIRTypeData
|
||||
|
@ -586,12 +591,7 @@ public:
|
|||
mId = typeData.mId;
|
||||
}
|
||||
|
||||
BfIRType(const BfIRValue& val) { mKind = TypeKind_Stream; mId = val.mId; }
|
||||
|
||||
operator bool()
|
||||
{
|
||||
return (mId != -1);
|
||||
}
|
||||
BfIRType(const BfIRValue& val) { mKind = TypeKind_Stream; mId = val.mId; }
|
||||
};
|
||||
|
||||
struct BfIRBlock : public BfIRValue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue