diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-03-16 12:58:55 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2020-04-02 07:14:08 -0700 |
commit | 18d85b88aed1b8ee3994f30cd60c143a57fe91d5 (patch) | |
tree | 720609b5d30a7db9c6c7fef25b9d0bf6b4eb1ee5 /kernel/rtlil.h | |
parent | 7bcbf0c9d1327c1e2fb3b96aa2cd888afbeb11b1 (diff) | |
download | yosys-18d85b88aed1b8ee3994f30cd60c143a57fe91d5.tar.gz yosys-18d85b88aed1b8ee3994f30cd60c143a57fe91d5.tar.bz2 yosys-18d85b88aed1b8ee3994f30cd60c143a57fe91d5.zip |
kernel: fix formatting (thanks @boqwxp)
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r-- | kernel/rtlil.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 2d490e635..e12d9d049 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -363,12 +363,10 @@ namespace RTLIL template<typename... Args> bool in(Args... args) const { - //return in(first) || in(rest...); - - // Credit: https://articles.emptycrate.com/2016/05/14/folds_in_cpp11_ish.html - bool result = false; - (void) std::initializer_list<int>{ (result = result || in(args), 0)... }; - return result; + // Credit: https://articles.emptycrate.com/2016/05/14/folds_in_cpp11_ish.html + bool result = false; + (void) std::initializer_list<int>{ (result = result || in(args), 0)... }; + return result; } bool in(IdString rhs) const { return *this == rhs; } |