~stomato463/+junk/nvdajp

« back to all changes in this revision

Viewing changes to source/NVDAHelper/common/debug.cpp

  • Committer: Masataka Shinke
  • Date: 2011-10-25 12:35:26 UTC
  • mfrom: (4185 jpmain)
  • mto: This revision was merged to the branch mainline in revision 4211.
  • Revision ID: mshinke@users.sourceforge.jp-20111025123526-ze527a2rl3z0g2ky
lp:~nishimotz/nvdajp/main : 4185 をマージ

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
 * base/debug.cpp
3
 
 * Part of the NV  Virtual Buffer Library
4
 
 * This library is copyright 2007, 2008 NV Virtual Buffer Library Contributors
5
 
 * This library is licensed under the GNU Lesser General Public Licence. See license.txt which is included with this library, or see
6
 
 * http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
7
 
 */
8
 
 
9
 
#include <fstream>
10
 
#include "debug.h"
11
 
 
12
 
using namespace std;
13
 
 
14
 
wostream* _debugFile=NULL;
15
 
 
16
 
void debug_start(wostream* s) {
17
 
        if(!_debugFile) {
18
 
                _debugFile=s;
19
 
                (*_debugFile)<<L"Debugging started"<<endl;
20
 
        }
21
 
}
22
 
 
23
 
void debug_end() {
24
 
        if(_debugFile) {
25
 
                (*_debugFile)<<L"Debugging ended"<<endl;
26
 
                _debugFile=NULL;
27
 
        }
28
 
}