Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Sandrine Bailleux | 971545c | 2019-01-18 13:30:29 +0100 | [diff] [blame] | 7 | #include <stdio.h> |
Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 8 | |
| 9 | /* |
| 10 | * This is a basic implementation. This could be improved. |
| 11 | */ |
| 12 | void __assert (const char *function, const char *file, unsigned int line, |
| 13 | const char *assertion) |
| 14 | { |
Sandrine Bailleux | 971545c | 2019-01-18 13:30:29 +0100 | [diff] [blame] | 15 | printf("ASSERT: %s <%d> : %s\n", function, line, assertion); |
| 16 | |
| 17 | while (1) |
| 18 | ; |
Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 19 | } |