Merge pull request #5452 from vs34/fix-undef-id

kernel: Fix define ID issue, needs undef first
This commit is contained in:
Emil J 2025-11-03 15:08:07 +01:00 committed by GitHub
commit 2d7a191b01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -569,6 +569,7 @@ template <> struct IDMacroHelper<-1> {
} }
}; };
#undef ID
#define ID(_id) \ #define ID(_id) \
YOSYS_NAMESPACE_PREFIX IDMacroHelper< \ YOSYS_NAMESPACE_PREFIX IDMacroHelper< \
YOSYS_NAMESPACE_PREFIX lookup_well_known_id(#_id) \ YOSYS_NAMESPACE_PREFIX lookup_well_known_id(#_id) \