- Timestamp:
- 12/15/09 16:09:34 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/objective-cplusplus/i3/trunk/src/mil/include/mil/os-unix/Debug.h
r34849 r36141 13 13 string file; 14 14 int line; 15 int last_errno; 15 16 bool will_abort; 16 17 public: … … 21 22 return *this; 22 23 } 23 Logger(const char* file, int line, bool will_abort = false)24 : file(file), line(line), will_abort(will_abort) {24 Logger(const char* file, int line, int last_errno, bool will_abort = false) 25 : file(file), line(line), last_errno(last_errno), will_abort(will_abort) { 25 26 } 26 27 ~Logger() { 27 cout << data.str() << "," << file << ":" << line << endl; 28 29 cout << data.str() << "," << file << ":" << line << ",errno=" << last_errno << "\"" << strerror(last_errno) << "\"" << endl; 28 30 //cout << data.str() << flush; 29 31 if (will_abort) {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)