1. Enumeration of bits
- Posted by Fernando Jul 18, 2008
- 841 views
Since bit manipulation is very common in interfacing with DLLs, how about having a specific enumeration construct for bits?
For example, instead of use this:
enum bit0=1, bit1=2, bit2=4, bit5=32, bit6=64
Use this:
enumbits bit0, bit1, bit2, bit5=5, bit6
- Fernando