////////////////////////////////////////////////////////////////////////// AddOutTarget -- Attempts to add a new target for trace/debug output. FAILS ONLY IF caller attempts to SET OUT_FILE via this function. //////////////////////////////////////////////////////////////////////////
| 225 | // FAILS ONLY IF caller attempts to SET OUT_FILE via this function. |
| 226 | /////////////////////////////////////////////////////////////////////////////// |
| 227 | bool cDebug::AddOutTarget(OutTarget target) |
| 228 | { |
| 229 | if (target == OUT_STDOUT) |
| 230 | mOutMask |= OUT_STDOUT; |
| 231 | if (target == OUT_TRACE) |
| 232 | mOutMask |= OUT_TRACE; |
| 233 | if (target == OUT_FILE) |
| 234 | { |
| 235 | mOutMask |= OUT_FILE; |
| 236 | return false; |
| 237 | } |
| 238 | return true; |
| 239 | } |
| 240 | |
| 241 | /////////////////////////////////////////////////////////////////////////////// |
| 242 | // RemoveOutTarget -- Masks out from mOutMask the value passed. |
nothing calls this directly
no outgoing calls
no test coverage detected