Skip to content

Commit 3d8ee01

Browse files
committed
RP Pico compatibility for tinyusb: hard_assert
1 parent 9328f70 commit 3d8ee01

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ext/rp/pico.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ extern "C" {
2727
/* override expensive assert implementation */
2828
#undef assert
2929
#define assert(X) modm_assert((X), "pico", __FILE__ ":" MODM_STRINGIFY(__LINE__) " -> \"" #X "\"")
30+
31+
#ifndef hard_assert
32+
#define hard_assert assert
33+
#endif
34+
3035
void
31-
panic(const char *fmt, ...);
36+
panic(const char* /*fmt*/, ...);
3237

3338
#ifdef __cplusplus
3439
}
35-
#endif
40+
#endif

0 commit comments

Comments
 (0)