mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng16] Made assert (and impossible) removeable by defining NDEBUG.
This commit is contained in:
parent
10ea5caef2
commit
9f2fb72c67
1
ANNOUNCE
1
ANNOUNCE
@ -759,6 +759,7 @@ Version 1.7.0beta57 [March 16, 2015]
|
|||||||
|
|
||||||
Version 1.7.0beta58 [March 21, 2015]
|
Version 1.7.0beta58 [March 21, 2015]
|
||||||
Implemented assert support and usage.
|
Implemented assert support and usage.
|
||||||
|
Made assert (and impossible) removeable by defining NDEBUG.
|
||||||
Remove pnglibconf.dfn and pnglibconf.pre with "make clean".
|
Remove pnglibconf.dfn and pnglibconf.pre with "make clean".
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
|
|||||||
1
CHANGES
1
CHANGES
@ -5049,6 +5049,7 @@ Version 1.7.0beta57 [March 16, 2015]
|
|||||||
|
|
||||||
Version 1.7.0beta58 [March 21, 2015]
|
Version 1.7.0beta58 [March 21, 2015]
|
||||||
Implemented assert support and usage.
|
Implemented assert support and usage.
|
||||||
|
Made assert (and impossible) removeable by defining NDEBUG.
|
||||||
Remove pnglibconf.dfn and pnglibconf.pre with "make clean".
|
Remove pnglibconf.dfn and pnglibconf.pre with "make clean".
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
|
|||||||
23
pngpriv.h
23
pngpriv.h
@ -332,6 +332,7 @@
|
|||||||
# define PNG_DLL_EXPORT
|
# define PNG_DLL_EXPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
/* The assert mechanism results in a minimal png_error in released versions
|
/* The assert mechanism results in a minimal png_error in released versions
|
||||||
* ('STABLE' versions) and a more descriptive abort in all other cases.
|
* ('STABLE' versions) and a more descriptive abort in all other cases.
|
||||||
* The macros rely on the naming convention throughout this code - png_ptr
|
* The macros rely on the naming convention throughout this code - png_ptr
|
||||||
@ -441,6 +442,28 @@
|
|||||||
PNG_apply(arm_arm_init)\
|
PNG_apply(arm_arm_init)\
|
||||||
PNG_apply(arm_filter_neon_intrinsics)\
|
PNG_apply(arm_filter_neon_intrinsics)\
|
||||||
PNG_end
|
PNG_end
|
||||||
|
#else
|
||||||
|
# define assert(cond)
|
||||||
|
# define impossible(cond)
|
||||||
|
# define png_impossiblepp(pp, cond)
|
||||||
|
# define PNG_SRC_FILE_png
|
||||||
|
# define PNG_SRC_FILE_pngerror
|
||||||
|
# define PNG_SRC_FILE_pngget
|
||||||
|
# define PNG_SRC_FILE_pngmem
|
||||||
|
# define PNG_SRC_FILE_pngpread
|
||||||
|
# define PNG_SRC_FILE_pngread
|
||||||
|
# define PNG_SRC_FILE_pngrio
|
||||||
|
# define PNG_SRC_FILE_pngrtran
|
||||||
|
# define PNG_SRC_FILE_pngrutil
|
||||||
|
# define PNG_SRC_FILE_pngset
|
||||||
|
# define PNG_SRC_FILE_pngtrans
|
||||||
|
# define PNG_SRC_FILE_pngwio
|
||||||
|
# define PNG_SRC_FILE_pngwrite
|
||||||
|
# define PNG_SRC_FILE_pngwtran
|
||||||
|
# define PNG_SRC_FILE_pngwutil
|
||||||
|
# define PNG_SRC_FILE_arm_arm_init
|
||||||
|
# define PNG_SRC_FILE_arm_filter_neon_intrinsics
|
||||||
|
#endif /* NDEBUG */
|
||||||
|
|
||||||
/* SECURITY and SAFETY:
|
/* SECURITY and SAFETY:
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user