anchao commented on issue #10416: URL: https://github.com/apache/nuttx/issues/10416#issuecomment-1765982237
You mean `CONFIG_DEBUG` is actually `CONFIG_NDEBUG=y` right? This is not introduced by my PR: https://github.com/apache/nuttx/blob/master/include/assert.h#L110-L114 so your point is that `assert()` is a syscall, and it should be able to generate assertions normally whether config `CONFIG_NDEBUG` is enable or disabled, right? However, I think `CONFIG_DEBUG` is a balance config, for the RTOS devices with limited resources, we can turn on this feature to remove filename/line to reduce the code size, if you want the NuttX to be in strict mode, just turn off `CONFIG_NDEBUG` is fine. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org