diff options
author | N. Engelhardt <nak@symbioticeda.com> | 2020-09-21 15:18:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-21 15:18:06 +0200 |
commit | ed5790382ac8427f8681456e00d76b8dce92d87d (patch) | |
tree | ae8eb8e76197fd4dbe0bda96eb977a380af009b6 /kernel/rtlil.h | |
parent | c6ff947f6bac336ab5a31913c2daf7ad1cb8b91b (diff) | |
parent | 32381907972e16d5f72705eaf5350b731a9d71c8 (diff) | |
download | yosys-ed5790382ac8427f8681456e00d76b8dce92d87d.tar.gz yosys-ed5790382ac8427f8681456e00d76b8dce92d87d.tar.bz2 yosys-ed5790382ac8427f8681456e00d76b8dce92d87d.zip |
Merge pull request #2372 from nakengelhardt/name_is_public
add IdString::isPublic()
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r-- | kernel/rtlil.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 6c561cb85..a03e8933c 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -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 { |