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

Side by Side Diff: nspr/pr/include/prlog.h

Issue 1504923011: Update NSS to 3.21 RTM and NSPR to 4.11 RTM (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/nss
Patch Set: Created 5 years 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
OLDNEW
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public 2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 5
6 #ifndef prlog_h___ 6 #ifndef prlog_h___
7 #define prlog_h___ 7 #define prlog_h___
8 8
9 #include "prtypes.h" 9 #include "prtypes.h"
10 10
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 ** and a time stamp. Also, the routine provides a missing newline if one 150 ** and a time stamp. Also, the routine provides a missing newline if one
151 ** is not provided. 151 ** is not provided.
152 */ 152 */
153 NSPR_API(void) PR_LogPrint(const char *fmt, ...); 153 NSPR_API(void) PR_LogPrint(const char *fmt, ...);
154 154
155 /* 155 /*
156 ** Flush the log to its file. 156 ** Flush the log to its file.
157 */ 157 */
158 NSPR_API(void) PR_LogFlush(void); 158 NSPR_API(void) PR_LogFlush(void);
159 159
160 NSPR_API(void) PR_Assert(const char *s, const char *file, PRIntn ln); 160 NSPR_API(void) PR_Assert(const char *s, const char *file, PRIntn ln)
161 PR_PRETEND_NORETURN;
161 162
162 #if defined(DEBUG) || defined(FORCE_PR_LOG) 163 #if defined(DEBUG) || defined(FORCE_PR_LOG)
163 #define PR_LOGGING 1 164 #define PR_LOGGING 1
164 165
165 #define PR_LOG_TEST(_module,_level) \ 166 #define PR_LOG_TEST(_module,_level) \
166 ((_module)->level >= (_level)) 167 ((_module)->level >= (_level))
167 168
168 /* 169 /*
169 ** Log something. 170 ** Log something.
170 ** "module" is the address of a PRLogModuleInfo structure 171 ** "module" is the address of a PRLogModuleInfo structure
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 #else 213 #else
213 214
214 #define PR_ASSERT(expr) ((void) 0) 215 #define PR_ASSERT(expr) ((void) 0)
215 #define PR_NOT_REACHED(reasonStr) 216 #define PR_NOT_REACHED(reasonStr)
216 217
217 #endif /* defined(DEBUG) || defined(FORCE_PR_ASSERT) */ 218 #endif /* defined(DEBUG) || defined(FORCE_PR_ASSERT) */
218 219
219 PR_END_EXTERN_C 220 PR_END_EXTERN_C
220 221
221 #endif /* prlog_h___ */ 222 #endif /* prlog_h___ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698