diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-07-28 10:52:58 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-07-28 10:52:58 +0200 |
commit | d86a25f145012ccb6b2048af3aae22f13b97b505 (patch) | |
tree | 7589225f762f11f108c61bbb6314a398032fbae5 /kernel/rtlil.h | |
parent | f99495a895eda0b1de6c1d7e8e1d5b1074316b34 (diff) | |
download | yosys-d86a25f145012ccb6b2048af3aae22f13b97b505.tar.gz yosys-d86a25f145012ccb6b2048af3aae22f13b97b505.tar.bz2 yosys-d86a25f145012ccb6b2048af3aae22f13b97b505.zip |
Added std::initializer_list<> constructor to SigSpec
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r-- | kernel/rtlil.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h index cd00b43d8..331ea3770 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -26,6 +26,8 @@ #include <string> #include <assert.h> +#include <initializer_list> + // various helpers (unrelated to RTLIL) std::string stringf(const char *fmt, ...); #define SIZE(__obj) int(__obj.size()) @@ -738,6 +740,7 @@ private: public: SigSpec(); SigSpec(const RTLIL::SigSpec &other); + SigSpec(std::initializer_list<RTLIL::SigSpec> parts); const RTLIL::SigSpec &operator=(const RTLIL::SigSpec &other); SigSpec(const RTLIL::Const &value); |