fix for build error with non debug builds from last commit.
This commit is contained in:
@@ -277,9 +277,9 @@
|
||||
*/
|
||||
#if !defined NDEBUG
|
||||
# ifdef WITH_ASSERT_ABORT
|
||||
# define _dummy_abort abort
|
||||
# define _BLI_DUMMY_ABORT abort
|
||||
# else
|
||||
# define _dummy_abort() (void)0
|
||||
# define _BLI_DUMMY_ABORT() (void)0
|
||||
# endif
|
||||
# if defined(__GNUC__) || defined(_MSC_VER) /* check __func__ is available */
|
||||
# define BLI_assert(a) \
|
||||
@@ -288,7 +288,7 @@
|
||||
fprintf(stderr, \
|
||||
"BLI_assert failed: %s, %s(), %d at \'%s\'\n", \
|
||||
__FILE__, __func__, __LINE__, STRINGIFY(a)), \
|
||||
_dummy_abort(), \
|
||||
_BLI_DUMMY_ABORT(), \
|
||||
NULL)) : NULL)
|
||||
# else
|
||||
# define BLI_assert(a) \
|
||||
@@ -297,7 +297,7 @@
|
||||
fprintf(stderr, \
|
||||
"BLI_assert failed: %s, %d at \'%s\'\n", \
|
||||
__FILE__, __LINE__, STRINGIFY(a)), \
|
||||
_dummy_abort(), \
|
||||
_BLI_DUMMY_ABORT(), \
|
||||
NULL)) : NULL)
|
||||
# endif
|
||||
#else
|
||||
|
@@ -69,13 +69,11 @@ int BMO_error_catch_op(BMesh *bm, BMOperator *catchop, int errorcode, char **msg
|
||||
#define BMERR_INVALID_SELECTION 9
|
||||
#define BMERR_MESH_ERROR 10
|
||||
|
||||
|
||||
/* BMESH_ERROR */
|
||||
|
||||
|
||||
/* _dummy_abort's defuned */
|
||||
#ifndef _dummy_abort
|
||||
# error "BLI_utildefines.h not included, '_dummy_abort' missing !"
|
||||
/* BMESH_ASSERT */
|
||||
#ifdef WITH_ASSERT_ABORT
|
||||
# define _BMESH_DUMMY_ABORT abort
|
||||
#else
|
||||
# define _BMESH_DUMMY_ABORT() (void)0
|
||||
#endif
|
||||
|
||||
/* this is meant to be higher level then BLI_assert(),
|
||||
@@ -86,7 +84,7 @@ int BMO_error_catch_op(BMesh *bm, BMOperator *catchop, int errorcode, char **msg
|
||||
fprintf(stderr, \
|
||||
"BMESH_ASSERT failed: %s, %s(), %d at \'%s\'\n", \
|
||||
__FILE__, __func__, __LINE__, STRINGIFY(a)), \
|
||||
_dummy_abort(), \
|
||||
_BMESH_DUMMY_ABORT(), \
|
||||
NULL)) : NULL)
|
||||
|
||||
#endif /* __BMESH_ERROR_H__ */
|
||||
|
Reference in New Issue
Block a user