Timeline for Custom assert() implementation: not printing the error message
Current License: CC BY-SA 4.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 10, 2021 at 12:54 | comment | added | timemage | If that's really the answer you're looking for then you might as well post your own answer calling that one out and I'll get rid of this one. You would need to mark yours as accepted. | |
| Jun 10, 2021 at 12:15 | vote | accept | Jurc192 | ||
| Jun 10, 2021 at 12:15 | comment | added | Jurc192 | I asked the same question in the PlatformIO community and clashing with avr-libc's assert macro is indeed the problem. | |
| Jun 8, 2021 at 13:48 | comment | added | timemage | See under Diagnostics and --save-temps. I'm not (left that out prior) going to be able to go much further with this as an answer really without working out exactly what to ask you to do or include in the question and then having you provide that, which would probably add a lot of noise to the question. | |
| Jun 8, 2021 at 13:28 | history | edited | timemage | CC BY-SA 4.0 |
More regrading --save-temps.
|
| Jun 8, 2021 at 13:23 | comment | added | timemage | Uhh, I will try to make an update to address that. | |
| Jun 8, 2021 at 13:20 | history | edited | timemage | CC BY-SA 4.0 |
Addition on __FILE__ usage and SRAM.
|
| Jun 8, 2021 at 13:14 | comment | added | Jurc192 |
Thanks for pointing me to avr-libc's implementation of sterr/assert! So we agree on clashing with the standard assert.h header. But I want to understand what and how the problem arises. Is it the file name, is it macro name, both? How could I check which implementation was used (e.g. inspecting binary, symbols or sth)? I tried using -H preprocessor flag (shows absolute paths of included headers), but couldn't see anything useful from it...
|
|
| Jun 8, 2021 at 13:08 | history | edited | timemage | CC BY-SA 4.0 |
Regarding using avr-libc's own assert.
|
| Jun 8, 2021 at 12:56 | history | edited | timemage | CC BY-SA 4.0 |
Regarding using avr-libc's own assert.
|
| Jun 8, 2021 at 12:49 | history | answered | timemage | CC BY-SA 4.0 |