| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PLATFORM_ASSERT_H_ | 5 #ifndef PLATFORM_ASSERT_H_ |
| 6 #define PLATFORM_ASSERT_H_ | 6 #define PLATFORM_ASSERT_H_ |
| 7 | 7 |
| 8 // TODO(5411406): include sstream for now, once we have a Utils::toString() | 8 // TODO(5411406): include sstream for now, once we have a Utils::toString() |
| 9 // implemented for all the primitive types we can replace the usage of | 9 // implemented for all the primitive types we can replace the usage of |
| 10 // sstream by Utils::toString() | 10 // sstream by Utils::toString() |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 dart::Expect(__FILE__, __LINE__).Fail("%s", error) | 355 dart::Expect(__FILE__, __LINE__).Fail("%s", error) |
| 356 | 356 |
| 357 #define FAIL1(format, p1) \ | 357 #define FAIL1(format, p1) \ |
| 358 dart::Expect(__FILE__, __LINE__).Fail(format, (p1)) | 358 dart::Expect(__FILE__, __LINE__).Fail(format, (p1)) |
| 359 | 359 |
| 360 #define FAIL2(format, p1, p2) \ | 360 #define FAIL2(format, p1, p2) \ |
| 361 dart::Expect(__FILE__, __LINE__).Fail(format, (p1), (p2)) | 361 dart::Expect(__FILE__, __LINE__).Fail(format, (p1), (p2)) |
| 362 | 362 |
| 363 #endif // defined(TESTING) | 363 #endif // defined(TESTING) |
| 364 | 364 |
| 365 |
| 365 #endif // PLATFORM_ASSERT_H_ | 366 #endif // PLATFORM_ASSERT_H_ |
| OLD | NEW |