Commit 9975f197 authored by yiwenshao's avatar yiwenshao

add new global constants

parent 0fa3f2a9
......@@ -10,4 +10,6 @@ useSalt:true
BS_STR:MIN
BS_IA:MIN
BS_IH:MIN
#true or false
USE_ASHE:true
other:1
......@@ -108,7 +108,17 @@ globalConstants initGlobalConstants(){
POINT
assert(0);
}
}else{
}else if(head == "USE_ASHE") {
std::string sub = line.substr(index+1);
if(sub=="true"){
res.USE_ASHE = true;
}else if(sub=="false"){
res.USE_ASHE = false;
}else{
POINT
assert(0);
}
}else {
POINT
assert(0);
}
......
......@@ -21,6 +21,7 @@ struct globalConstants{
int BS_STR;
int BS_IA;
int BS_IH;
bool USE_ASHE;
std::string logFile;/*file name for log*/
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment