diff options
Diffstat (limited to 'machxo2/archdefs.h')
-rw-r--r-- | machxo2/archdefs.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/machxo2/archdefs.h b/machxo2/archdefs.h index 978c9c9b..6c861a32 100644 --- a/machxo2/archdefs.h +++ b/machxo2/archdefs.h @@ -46,6 +46,20 @@ struct DelayInfo } }; +enum ConstIds +{ + ID_NONE +#define X(t) , ID_##t +#include "constids.inc" +#undef X + , + DB_CONST_ID_COUNT +}; + +#define X(t) static constexpr auto id_##t = IdString(ID_##t); +#include "constids.inc" +#undef X + typedef IdString BelId; typedef IdString WireId; typedef IdString PipId; |