Enumeration of bits

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu