Skip to content

Commit 6be19e0

Browse files
committed
Revert change to only happen in CI
1 parent da6062e commit 6be19e0

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

include/avif/avif.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,8 @@ extern "C" {
8585
((AVIF_VERSION_MAJOR * 1000000) + (AVIF_VERSION_MINOR * 10000) + (AVIF_VERSION_PATCH * 100) + AVIF_VERSION_DEVEL)
8686

8787
typedef int avifBool;
88-
enum avifTrueFalse_
89-
{
90-
AVIF_FALSE = 0,
91-
AVIF_TRUE = 1
92-
};
88+
#define AVIF_TRUE 1
89+
#define AVIF_FALSE 0
9390

9491
#define AVIF_DIAGNOSTICS_ERROR_BUFFER_SIZE 256
9592

include/avif/internal.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,8 @@ static inline void avifBreakOnError()
6262
// AVIF_ASSERT_OR_RETURN() can be used instead of assert() for extra security in release builds.
6363
#ifdef NDEBUG
6464
#define AVIF_ASSERT_OR_RETURN(A) AVIF_CHECKERR((A), AVIF_RESULT_INTERNAL_ERROR)
65-
#define AVIF_ASSERT_NOT_REACHED_OR_RETURN \
66-
do { \
67-
avifBreakOnError(); \
68-
return AVIF_RESULT_INTERNAL_ERROR; \
69-
} while (0)
7065
#else
7166
#define AVIF_ASSERT_OR_RETURN(A) assert(A)
72-
#define AVIF_ASSERT_NOT_REACHED_OR_RETURN assert(0);
7367
#endif
7468

7569
// ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)