p4lang / p4c

P4_16 reference compiler
https://p4.org/
Apache License 2.0
681 stars 445 forks source link

Add LOGGING_FEATURE macro #4953

Closed vlstill closed 1 month ago

vlstill commented 1 month ago

While there is a LOGGING macro for checking if given log-level is enabled for the current file, there was no feature counterpart for it. This simple change adds it.