2016-09-27 18:50:32 +00:00
|
|
|
#pragma once
|
2016-09-27 18:38:36 +00:00
|
|
|
|
2016-09-28 19:38:13 +00:00
|
|
|
#define TEST_FLAG1 0
|
|
|
|
#define SHOW_FPS 1
|
|
|
|
#define TEST_FLAG2 2
|
|
|
|
#define TEST_AUTORUN 3
|
2016-09-27 18:38:36 +00:00
|
|
|
//...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define SET_FLAG(x,y) optionsFlags&=(~((1)<<x));optionsFlags|=((y&1)<<x)
|
|
|
|
#define ISSET_FLAG(x) (optionsFlags&((1)<<x))
|
2016-09-27 18:56:57 +00:00
|
|
|
extern uint64_t optionsFlags;
|
2016-09-27 18:38:36 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* usage:
|
|
|
|
* SET_FLAG(SHOW_FPS,true);
|
|
|
|
*
|
|
|
|
* if(ISSET_FLAG(SHOW_FPS)){
|
|
|
|
* ...
|
|
|
|
* }
|
|
|
|
*/
|