fw: Don't use reserved or reserved-looking names

This commit is contained in:
Michael Cardell Widerkrantz 2023-03-21 13:56:07 +01:00
parent 1713d7c96b
commit f622937918
No known key found for this signature in database
GPG Key ID: D3DB3DDF57E704E5
2 changed files with 9 additions and 9 deletions

View File

@ -7,17 +7,17 @@
#include "led.h"
#include "lib.h"
void __assert_fail(const char *__assertion, const char *__file,
unsigned int __line, const char *__function)
void assert_fail(const char *assertion, const char *file,
unsigned int line, const char *function)
{
htif_puts("assert: ");
htif_puts(__assertion);
htif_puts(assertion);
htif_puts(" ");
htif_puts(__file);
htif_puts(file);
htif_puts(":");
htif_putinthex(__line);
htif_putinthex(line);
htif_puts(" ");
htif_puts(__function);
htif_puts(function);
htif_lf();
forever_redflash();

View File

@ -8,9 +8,9 @@
#define assert(expr) \
((expr) ? (void)(0) \
: __assert_fail(#expr, __FILE__, __LINE__, __func__))
: assert_fail(#expr, __FILE__, __LINE__, __func__))
void __assert_fail(const char *__assertion, const char *__file,
unsigned int __line, const char *__function);
void assert_fail(const char *assertion, const char *file,
unsigned int line, const char *function);
#endif