OLD | NEW |
1 // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #include "src/shared/assert.h" | 5 #include "src/shared/assert.h" |
6 | 6 |
7 #include <stdarg.h> | 7 #include <stdarg.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 | 9 |
10 #include "src/shared/utils.h" | 10 #include "src/shared/utils.h" |
11 #include "src/shared/platform.h" | 11 #include "src/shared/platform.h" |
(...skipping 29 matching lines...) Expand all Loading... |
41 void Fail<EXPECT>(const char* file, int line, const char* format, ...) { | 41 void Fail<EXPECT>(const char* file, int line, const char* format, ...) { |
42 va_list arguments; | 42 va_list arguments; |
43 va_start(arguments, format); | 43 va_start(arguments, format); |
44 PrintError(file, line, format, arguments); | 44 PrintError(file, line, format, arguments); |
45 va_end(arguments); | 45 va_end(arguments); |
46 Platform::ScheduleAbort(); | 46 Platform::ScheduleAbort(); |
47 } | 47 } |
48 | 48 |
49 } // namespace DynamicAssertionHelper | 49 } // namespace DynamicAssertionHelper |
50 } // namespace fletch | 50 } // namespace fletch |
OLD | NEW |