diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-03-12 12:54:30 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2020-04-02 07:14:08 -0700 |
commit | 164dd0f6b298e416bd1ef882f21a4d0b5acfd039 (patch) | |
tree | eb57ca590143925cdc5cc86a2f0da131354529ee /kernel/rtlil.h | |
parent | 37f42fe102e329793b884a47321423062eedfce7 (diff) | |
download | yosys-164dd0f6b298e416bd1ef882f21a4d0b5acfd039.tar.gz yosys-164dd0f6b298e416bd1ef882f21a4d0b5acfd039.tar.bz2 yosys-164dd0f6b298e416bd1ef882f21a4d0b5acfd039.zip |
kernel: Use constids.inc for global/constant IdStrings
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r-- | kernel/rtlil.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h index a1754c8bd..7c1523f0b 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -370,11 +370,9 @@ namespace RTLIL }; namespace ID { - // defined in rtlil.cc, initialized in yosys.cc - extern IdString A, B, Y; - extern IdString keep; - extern IdString whitebox; - extern IdString blackbox; +#define X(_id) extern IdString _id; +#include "constids.inc" +#undef X }; extern dict<std::string, std::string> constpad; |