| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BASE_LOGGING_H_ | 5 #ifndef BASE_LOGGING_H_ |
| 6 #define BASE_LOGGING_H_ | 6 #define BASE_LOGGING_H_ |
| 7 | 7 |
| 8 #ifdef __native_client__ |
| 9 #include "base/nacl_logging.h" |
| 10 #else |
| 11 |
| 8 #include <string> | 12 #include <string> |
| 9 #include <cstring> | 13 #include <cstring> |
| 10 #include <sstream> | 14 #include <sstream> |
| 11 | 15 |
| 12 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
| 13 | 17 |
| 14 // | 18 // |
| 15 // Optional message capabilities | 19 // Optional message capabilities |
| 16 // ----------------------------- | 20 // ----------------------------- |
| 17 // Assertion failed messages and fatal errors are displayed in a dialog box | 21 // Assertion failed messages and fatal errors are displayed in a dialog box |
| (...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 #define NOTIMPLEMENTED() NOTREACHED() | 835 #define NOTIMPLEMENTED() NOTREACHED() |
| 832 #elif NOTIMPLEMENTED_POLICY == 4 | 836 #elif NOTIMPLEMENTED_POLICY == 4 |
| 833 #define NOTIMPLEMENTED() LOG(ERROR) << NOTIMPLEMENTED_MSG | 837 #define NOTIMPLEMENTED() LOG(ERROR) << NOTIMPLEMENTED_MSG |
| 834 #elif NOTIMPLEMENTED_POLICY == 5 | 838 #elif NOTIMPLEMENTED_POLICY == 5 |
| 835 #define NOTIMPLEMENTED() do {\ | 839 #define NOTIMPLEMENTED() do {\ |
| 836 static int count = 0;\ | 840 static int count = 0;\ |
| 837 LOG_IF(ERROR, 0 == count++) << NOTIMPLEMENTED_MSG;\ | 841 LOG_IF(ERROR, 0 == count++) << NOTIMPLEMENTED_MSG;\ |
| 838 } while(0) | 842 } while(0) |
| 839 #endif | 843 #endif |
| 840 | 844 |
| 845 #endif // __native_client__ |
| 841 #endif // BASE_LOGGING_H_ | 846 #endif // BASE_LOGGING_H_ |
| OLD | NEW |