DeanoBurrito / northport

Monolithic kernel and support libraries for riscv64 and x86_64.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better use of sl::EnumHasFlag()

DeanoBurrito opened this issue · comments

commented

This function was introduced as a nice way of working with strongly typed enum classes, without breaking the illusion of c++'s enum class (which this function ironically undoes).
There's likely a few places this function could be implemented to improve readability, and we should mark it as FORCE_INLINE to eliminate that slight overhead.
A simple regex or manual search should do the trick.

commented

good work me! closed in < 1 hour :D