Subversion Repositories public iLand

Rev

Rev 285 | Rev 289 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 285 Rev 287
Line 77... Line 77...
77
{
77
{
78
    if (value)
78
    if (value)
79
        rTarget |= (1 << bit);  // set bit
79
        rTarget |= (1 << bit);  // set bit
80
    else
80
    else
81
        rTarget &= ( (1 << bit) ^ 0xffffff ); // clear bit
81
        rTarget &= ( (1 << bit) ^ 0xffffff ); // clear bit
-
 
82
}
-
 
83
inline bool isBitSet(const int value, const int bit)
-
 
84
{
-
 
85
    return value & (1 << bit);
82
}
86
}
83
#endif // GLOBAL_H
87
#endif // GLOBAL_H