/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
 *  (C) 2006 by Argonne National Laboratory.
 *      See COPYRIGHT in top-level directory.
 */

#ifndef MPID_NEM_DEBUG_H
#define MPID_NEM_DEBUG_H

/*#define NDEBUG 1 */
#include <assert.h>

/*#define MY_DEBUG*/
#ifdef MY_DEBUG
#define printf_d printf
#else
#define printf_d(x...) do { } while (0)
#endif

/*#define YIELD_IN_SKIP*/
#ifdef YIELD_IN_SKIP
#define SKIP sched_yield()
#warning "SKIP is sched_yield"
#else /* YIELD_IN_SKIP */
#define SKIP do{}while(0)
/*#warning "SKIP is do ...while" */
#endif /* YIELD_IN_SKIP */

/* debugging message functions */

struct MPID_nem_cell;
void MPID_nem_dbg_dump_cell (volatile struct MPID_nem_cell *cell);

#endif /* MPID_NEM_DEBUG_H */
