mirror of https://github.com/YosysHQ/yosys.git
add IdString::isPublic()
This commit is contained in:
parent
c66d1dfad1
commit
4af04be0b7
|
@ -375,6 +375,8 @@ namespace RTLIL
|
|||
bool in(const char *rhs) const { return *this == rhs; }
|
||||
bool in(const std::string &rhs) const { return *this == rhs; }
|
||||
bool in(const pool<IdString> &rhs) const { return rhs.count(*this) != 0; }
|
||||
|
||||
bool isPublic() { return begins_with("\\"); }
|
||||
};
|
||||
|
||||
namespace ID {
|
||||
|
|
Loading…
Reference in New Issue