22 lines
304 B
C++
22 lines
304 B
C++
|
|
||
|
#define TEST_FLAG1 0
|
||
|
#define SHOW_FPS 1
|
||
|
#define TEST_FLAG2 2
|
||
|
//...
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
#define SET_FLAG(x,y) optionsFlags&=(~((1)<<x));optionsFlags|=((y&1)<<x)
|
||
|
#define ISSET_FLAG(x) (optionsFlags&((1)<<x))
|
||
|
uint64_t optionsFlags;
|
||
|
|
||
|
/*
|
||
|
* usage:
|
||
|
* SET_FLAG(SHOW_FPS,true);
|
||
|
*
|
||
|
* if(ISSET_FLAG(SHOW_FPS)){
|
||
|
* ...
|
||
|
* }
|
||
|
*/
|