| OLD | NEW |
| 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 /* ***** BEGIN LICENSE BLOCK ***** | 2 /* ***** BEGIN LICENSE BLOCK ***** |
| 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 4 * | 4 * |
| 5 * The contents of this file are subject to the Mozilla Public License Version | 5 * The contents of this file are subject to the Mozilla Public License Version |
| 6 * 1.1 (the "License"); you may not use this file except in compliance with | 6 * 1.1 (the "License"); you may not use this file except in compliance with |
| 7 * the License. You may obtain a copy of the License at | 7 * the License. You may obtain a copy of the License at |
| 8 * http://www.mozilla.org/MPL/ | 8 * http://www.mozilla.org/MPL/ |
| 9 * | 9 * |
| 10 * Software distributed under the License is distributed on an "AS IS" basis, | 10 * Software distributed under the License is distributed on an "AS IS" basis, |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 #define PR_NOT_REACHED(_reasonStr) \ | 241 #define PR_NOT_REACHED(_reasonStr) \ |
| 242 PR_Assert(_reasonStr,__FILE__,__LINE__) | 242 PR_Assert(_reasonStr,__FILE__,__LINE__) |
| 243 | 243 |
| 244 #else | 244 #else |
| 245 | 245 |
| 246 #define PR_ASSERT(expr) ((void) 0) | 246 #define PR_ASSERT(expr) ((void) 0) |
| 247 #define PR_NOT_REACHED(reasonStr) | 247 #define PR_NOT_REACHED(reasonStr) |
| 248 | 248 |
| 249 #endif /* defined(DEBUG) || defined(FORCE_PR_ASSERT) */ | 249 #endif /* defined(DEBUG) || defined(FORCE_PR_ASSERT) */ |
| 250 | 250 |
| 251 /* | |
| 252 ** Compile-time assert. "condition" must be a constant expression. | |
| 253 ** The macro can be used only in places where an "extern" declaration is | |
| 254 ** allowed. | |
| 255 */ | |
| 256 #define PR_STATIC_ASSERT(condition) \ | |
| 257 extern void pr_static_assert(int arg[(condition) ? 1 : -1]) | |
| 258 | |
| 259 PR_END_EXTERN_C | 251 PR_END_EXTERN_C |
| 260 | 252 |
| 261 #endif /* prlog_h___ */ | 253 #endif /* prlog_h___ */ |
| OLD | NEW |