Browse Source

Factor CHECKED out of DEBUG so it can be set seperatly

Suggested-by: Matt Wolenetz <wolenetz@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.3
Michael Niedermayer 9 years ago
parent
commit
e8d4eacc07
2 changed files with 5 additions and 1 deletions
  1. +1
    -1
      libavcodec/flacdsp.c
  2. +4
    -0
      libavutil/internal.h

+ 1
- 1
libavcodec/flacdsp.c View File

@@ -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


+ 4
- 0
libavutil/internal.h View File

@@ -30,6 +30,10 @@
# define NDEBUG
#endif

#if defined(DEBUG) && !defined(CHECKED)
# define CHECKED
#endif

#include <limits.h>
#include <stdint.h>
#include <stddef.h>


Loading…
Cancel
Save