OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef SDCH_LOGGING_FORWARD_H_ | |
6 #define SDCH_LOGGING_FORWARD_H_ | |
7 | |
8 #include "base/logging.h" | |
9 | |
10 // open-vcdiff's logging.h includes iostream, which adds static initializers | |
11 // to several compilation units. To prevent this, provide this replacement | |
12 // header which forwards open-vcdiffs logging macros to chromium's base logging | |
13 // mechanism. | |
14 #define VCD_WARNING LOG(WARNING) | |
15 #define VCD_ERROR LOG(ERROR) | |
16 #define VCD_DFATAL LOG(DFATAL) | |
17 #define VCD_ENDL "\n" | |
wtc
2013/11/12 18:14:03
This is missing the open_vcdiff::CheckFatalError()
Nico
2013/11/12 18:34:42
Yes. (I think LOG(DFATAL) might implicitly add a n
| |
18 | |
19 // Define open-vcdiff's logging.h header guard, so that it doesn't get used. | |
20 #define OPEN_VCDIFF_LOGGING_H_ | |
wtc
2013/11/12 18:14:03
Nit: it seems a little better to define this heade
Nico
2013/11/12 18:34:42
Done.
jar (doing other things)
2013/11/13 00:34:45
+1
| |
21 | |
22 #endif // SDCH_LOGGING_FORWARD_H_ | |
OLD | NEW |