Changeset 231896 in webkit
- Timestamp:
- May 17, 2018 7:29:46 AM (6 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r231867 r231896 1 2018-05-17 Zalan Bujtas <zalan@apple.com> 2 3 Add ASSERT_NOT_IMPLEMENTED_YET() macro 4 https://bugs.webkit.org/show_bug.cgi?id=185713 5 6 Reviewed by Antti Koivisto. 7 8 To mark unimplemented code paths. 9 10 * wtf/Assertions.cpp: 11 * wtf/Assertions.h: 12 1 13 2018-05-16 Andy VanWagoner <andy@vanwagoner.family> 2 14 -
trunk/Source/WTF/wtf/Assertions.cpp
r230589 r231896 200 200 } 201 201 202 void WTFReportNotImplementedYet(const char* file, int line, const char* function) 203 { 204 printf_stderr_common("NOT IMPLEMENTED YET\n"); 205 printCallSite(file, line, function); 206 } 207 202 208 void WTFReportAssertionFailure(const char* file, int line, const char* function, const char* assertion) 203 209 { -
trunk/Source/WTF/wtf/Assertions.h
r231130 r231896 181 181 #endif 182 182 183 WTF_EXPORT_PRIVATE void WTFReportNotImplementedYet(const char* file, int line, const char* function); 183 184 WTF_EXPORT_PRIVATE void WTFReportAssertionFailure(const char* file, int line, const char* function, const char* assertion); 184 185 WTF_EXPORT_PRIVATE void WTFReportAssertionFailureWithMessage(const char* file, int line, const char* function, const char* assertion, const char* format, ...) WTF_ATTRIBUTE_PRINTF(5, 6); … … 278 279 #define ASSERT_AT(assertion, file, line, function) ((void)0) 279 280 #define ASSERT_NOT_REACHED() ((void)0) 281 #define ASSERT_NOT_IMPLEMENTED_YET() ((void)0) 280 282 #define ASSERT_IMPLIES(condition, assertion) ((void)0) 281 283 #define NO_RETURN_DUE_TO_ASSERT … … 314 316 #define ASSERT_NOT_REACHED() do { \ 315 317 WTFReportAssertionFailure(__FILE__, __LINE__, WTF_PRETTY_FUNCTION, 0); \ 318 CRASH(); \ 319 } while (0) 320 321 #define ASSERT_NOT_IMPLEMENTED_YET() do { \ 322 WTFReportNotImplementedYet(__FILE__, __LINE__, WTF_PRETTY_FUNCTION); \ 316 323 CRASH(); \ 317 324 } while (0)
Note: See TracChangeset
for help on using the changeset viewer.