Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: base/logging.h

Issue 519020: Moved logging for NaCl environment from gpu/command_buffer/common/logging.h t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | base/nacl_logging.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | base/nacl_logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698