Re: [OpenWrt-Devel] [PATCH v2 libubox 05/10] add assert.h component

2019-11-21 Thread Michael Jones
On Thu, Nov 21, 2019 at 12:17 AM Petr Štetiar wrote: > Michael Jones [2019-11-20 18:12:14]: > > > You may need #include_next, to avoid recursion. > > Is this some theoretical experience? Or you can provide me with some build > breakage? Just wondering, because #include should work this out with

Re: [OpenWrt-Devel] [PATCH v2 libubox 05/10] add assert.h component

2019-11-20 Thread Petr Štetiar
Michael Jones [2019-11-20 18:12:14]: > You may need #include_next, to avoid recursion. Is this some theoretical experience? Or you can provide me with some build breakage? Just wondering, because #include should work this out with "" and <>. BTW I would rather rename that include file to assert

Re: [OpenWrt-Devel] [PATCH v2 libubox 05/10] add assert.h component

2019-11-20 Thread Michael Jones
You may need #include_next, to avoid recursion. On Wed, Nov 20, 2019, 15:45 Petr Štetiar wrote: > In order to allow seamless assert() usage in release builds without the > need for fiddling with CMake C flags as CMake adds -DNDEBUG switch in > release builds which disable assert(). > > Signed-of

[OpenWrt-Devel] [PATCH v2 libubox 05/10] add assert.h component

2019-11-20 Thread Petr Štetiar
In order to allow seamless assert() usage in release builds without the need for fiddling with CMake C flags as CMake adds -DNDEBUG switch in release builds which disable assert(). Signed-off-by: Petr Štetiar --- assert.h | 9 + 1 file changed, 9 insertions(+) create mode 100644 assert.