Commit e8d4eacc authored by Michael Niedermayer's avatar Michael Niedermayer

Factor CHECKED out of DEBUG so it can be set seperatly

Suggested-by: 's avatarMatt Wolenetz <wolenetz@google.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 2ac6eeda
......@@ -45,7 +45,7 @@
// For debuging we use signed operations so overflows can be detected (by ubsan)
// For production we use unsigned so there are no undefined operations
#ifdef DEBUG
#ifdef CHECKED
#define SUINT int
#else
#define SUINT unsigned
......
......@@ -30,6 +30,10 @@
# define NDEBUG
#endif
#if defined(DEBUG) && !defined(CHECKED)
# define CHECKED
#endif
#include <limits.h>
#include <stdint.h>
#include <stddef.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment