const bool的话bool就一定不能在运行过程中修改自己的值了吗?
.h 头文件
[C] 纯文本查看 复制代码 Account.h
const bool Access;
const bool NoBridge;
const bool NoRouting;
.c 程序体
[C] 纯文本查看 复制代码 // Account.c
#include "CedarPch.h"
//The Forcefully true/false of the policy item[oscar's unlocked version is defined in file Account.c]
//In Account.h they're extern const bool[string name of that item]
//To use the account.h file in other place other than account.c make
//#define TRUE 1
//#define FALSE 0
//in those .h files too
//the const bool code blocks should also written inside those .c files
#include "Account.h"
const bool Access = true;
const bool NoBridge = false;
const bool NoRouting = false;
const bool NoServer = false;
const bool MonitorPort = true;
const bool NoRoutingV6 = false;
const bool NoServerV6 = false;
const bool Ver3 = false; |