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

View File

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