Get the number quietly. Use this for debug options we dont need the user to see.
| 95 | // Get the number quietly. |
| 96 | // Use this for debug options we dont need the user to see. |
| 97 | int configGetNumQ(const char *name, int defaultvalue) |
| 98 | { |
| 99 | if (gConfig.defines(name)) { |
| 100 | //return gConfig.getNum(name,defaultvalue); |
| 101 | const char *strval = gConfig.getStr(name).c_str(); |
| 102 | return strtol(strval,NULL,0); // strtol allows hex |
| 103 | } else { |
| 104 | return defaultvalue; |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | // Dont bother with a fancy specification (eg: 2x4) because we are going |
| 109 | // to dynamically allocate channels soon. |
no outgoing calls
no test coverage detected