1
1

Arf -- didn't test the OMPI_DEBUG_ZERO with an optimized build, and it

caused the nightlies to fail.  Move the definition of OMPI_DEBUG_ZERO
up to ompi_config_bottom.h and now all is well.

This commit was SVN r3664.
Этот коммит содержится в:
Jeff Squyres 2004-11-27 12:43:19 +00:00
родитель 77a3308de0
Коммит 0c05204c13
2 изменённых файлов: 25 добавлений и 26 удалений

Просмотреть файл

@ -152,6 +152,14 @@ typedef long long bool;
# undef free
# endif
# define free(ptr) ompi_free((ptr), __FILE__, __LINE__)
/*
* If we're mem debugging, make the OMPI_DEBUG_ZERO resolve to memset
*/
# include <string.h>
# define OMPI_DEBUG_ZERO(obj) memset(&obj, 0, sizeof(obj))
#else
# define OMPI_DEBUG_ZERO(obj)
#endif

Просмотреть файл

@ -36,15 +36,6 @@
#define OMPI_MALLOC_DEBUG_LEVEL 2
#endif
/*
* If we're mem debugging, make the OMPI_DEBUG_ZERO resolve to memset
*/
#if defined(OMPI_ENABLE_MEM_DEBUG) && OMPI_ENABLE_MEM_DEBUG
#define OMPI_DEBUG_ZERO(obj) memset(&obj, 0, sizeof(obj))
#else
#define OMPI_DEBUG_ZERO(obj)
#endif
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif