View Single Post
eyal282
Veteran Member
Join Date: Aug 2011
Old 06-06-2017 , 09:43   Re: [TUT] Bits, Bit-fields, and Bit-wise Operators
Reply With Quote #78

Can you do for example:

#define SetUserBool(%1,%2) ( %1 |= (1 << (%2 - 1)))

Because it will range from 0 to 31.

Last edited by eyal282; 06-06-2017 at 17:08.
eyal282 is offline