Changeset 295570 in webkit
- Timestamp:
- Jun 15, 2022 1:20:53 PM (2 years ago)
- Location:
- trunk/Source/bmalloc/libpas/src/libpas
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/bmalloc/libpas/src/libpas/pas_utils.c
r295562 r295570 172 172 pas_log("%s:%d: %s: assertion %s failed.\n", filename, line, function, expression); 173 173 } 174 175 void pas_assertion_failed(const char* filename, int line, const char* function, const char* expression)176 {177 pas_panic("%s:%d: %s: assertion %s failed.\n", filename, line, function, expression);178 }179 174 #endif /* PAS_ENABLE_TESTING */ 180 175 -
trunk/Source/bmalloc/libpas/src/libpas/pas_utils.h
r295562 r295570 219 219 220 220 #if PAS_ENABLE_TESTING 221 PAS_API PAS_NO_RETURN void pas_assertion_failed( 222 const char* filename, int line, const char* function, const char* expression); 221 PAS_API PAS_NO_RETURN void pas_assertion_failed(const char* filename, int line, const char* function, const char* expression) 222 { 223 pas_panic("%s:%d: %s: assertion %s failed.\n", filename, line, function, expression); 224 } 223 225 #else /* PAS_ENABLE_TESTING -> so !PAS_ENABLE_TESTING */ 224 226 static PAS_ALWAYS_INLINE PAS_NO_RETURN void pas_assertion_failed( … … 277 279 { 278 280 PAS_REPORT_ASSERTION_FAILED(filename, line, function, expression); 279 pas_crash_with_info_impl1( line, misc1);281 pas_crash_with_info_impl1((uint64_t)line, misc1); 280 282 } 281 283 … … 284 286 { 285 287 PAS_REPORT_ASSERTION_FAILED(filename, line, function, expression); 286 pas_crash_with_info_impl2( line, misc1, misc2);288 pas_crash_with_info_impl2((uint64_t)line, misc1, misc2); 287 289 } 288 290 … … 291 293 { 292 294 PAS_REPORT_ASSERTION_FAILED(filename, line, function, expression); 293 pas_crash_with_info_impl3( line, misc1, misc2, misc3);295 pas_crash_with_info_impl3((uint64_t)line, misc1, misc2, misc3); 294 296 } 295 297 … … 298 300 { 299 301 PAS_REPORT_ASSERTION_FAILED(filename, line, function, expression); 300 pas_crash_with_info_impl4( line, misc1, misc2, misc3, misc4);302 pas_crash_with_info_impl4((uint64_t)line, misc1, misc2, misc3, misc4); 301 303 } 302 304 … … 305 307 { 306 308 PAS_REPORT_ASSERTION_FAILED(filename, line, function, expression); 307 pas_crash_with_info_impl5( line, misc1, misc2, misc3, misc4, misc5);309 pas_crash_with_info_impl5((uint64_t)line, misc1, misc2, misc3, misc4, misc5); 308 310 } 309 311 … … 312 314 { 313 315 PAS_REPORT_ASSERTION_FAILED(filename, line, function, expression); 314 pas_crash_with_info_impl6( line, misc1, misc2, misc3, misc4, misc5, misc6);316 pas_crash_with_info_impl6((uint64_t)line, misc1, misc2, misc3, misc4, misc5, misc6); 315 317 } 316 318
Note: See TracChangeset
for help on using the changeset viewer.