mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-12-20 13:24:24 -05:00
fw: Don't use reserved or reserved-looking names
This commit is contained in:
parent
1713d7c96b
commit
f622937918
@ -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();
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user