Document hard_assert() #2314

Closed
opened 2025-02-24 01:49:20 -06:00 by magy00 · 1 comment
magy00 commented 2025-02-24 01:49:20 -06:00 (Migrated from github.com)

Several SDK examples (like hello.c) call hard_assert() but it is apparently not documented (in the PDF version of the C/C++ SDK or in the datasheets).

It's not so clear how "pico/assert.h" actually gets included and which parts of it are public and when to use it instead of assert() from <assert.h> (or <cassert>).

Several SDK examples (like [`hello.c`](https://github.com/raspberrypi/pico-examples/blob/master/pio/hello_pio/hello.c#L38)) call `hard_assert()` but it is apparently not documented (in the PDF version of the C/C++ SDK or in the datasheets). It's not so clear how `"pico/assert.h"` actually gets included and which parts of it are public and when to use it instead of `assert()` from `<assert.h>` (or `<cassert>`).
lurch commented 2025-07-24 17:10:03 -05:00 (Migrated from github.com)

Fixed on develop

Fixed on `develop`
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk#2314
No description provided.