mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-15 04:38:07 +02:00
brei: put a warning in that disabling NDEBUG is not a good idea
We really rely on assert all over the place, removing that is likely going to result in interesting outcomes when unexpected failures happen. Putting this into brei because it's a header used by both libei/libeis. Assisted-by: Claude:claude-opus-4-6 Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/388>
This commit is contained in:
parent
93ba922062
commit
fc5129968d
1 changed files with 4 additions and 0 deletions
|
|
@ -26,6 +26,10 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef NDEBUG
|
||||
#warning "This project relies on assert(). #defining NDEBUG is not recommended"
|
||||
#endif
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue