[fpc-pascal] Bit manipulation helpers
    Ryan Joseph 
    genericptr at gmail.com
       
    Mon Feb 21 13:47:00 CET 2022
    
    
  
> On Feb 21, 2022, at 7:31 PM, Michael Van Canneyt via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
> Hm. I'm not sure that this code does what you need.
> 
> But masking is indeed not in the helpers.
> 
Try it yourself, it does indeed work. How else are you supposed to test these kinds of bit flag APIs where all the flags are OR'd  together into an LongWord? A type helper would be great because clearly this stuff is hard to remember.
Regards,
	Ryan Joseph
    
    
More information about the fpc-pascal
mailing list