Coda Distributed File System
Macros | Functions | Variables
coda_assert.h File Reference

Go to the source code of this file.

Macros

#define CODA_ASSERT(pred)
 
#define CODA_NOTE(pred)
 
#define CODA_ASSERT_SLEEP   1
 
#define CODA_ASSERT_EXIT   2
 
#define CODA_ASSERT_ABORT   3
 
#define CODA_ASSERT_CORE   3
 

Functions

void coda_assert (const char *pred, const char *file, int line)
 
void coda_note (const char *pred, const char *file, int line)
 

Variables

void(* coda_assert_cleanup )(void)
 
int coda_assert_action
 

Macro Definition Documentation

◆ CODA_ASSERT

#define CODA_ASSERT (   pred)
Value:
do { \
if (!(pred)) \
coda_assert(#pred, __FILE__, __LINE__); \
} while (0)
#define __FILE__
Definition: odytypes.h:64
#define __LINE__
Definition: odytypes.h:68

◆ CODA_ASSERT_ABORT

#define CODA_ASSERT_ABORT   3

◆ CODA_ASSERT_CORE

#define CODA_ASSERT_CORE   3

◆ CODA_ASSERT_EXIT

#define CODA_ASSERT_EXIT   2

◆ CODA_ASSERT_SLEEP

#define CODA_ASSERT_SLEEP   1

◆ CODA_NOTE

#define CODA_NOTE (   pred)
Value:
do { \
if (!(pred)) \
coda_note(#pred, __FILE__, __LINE__); \
} while (0)

Function Documentation

◆ coda_assert()

void coda_assert ( const char *  pred,
const char *  file,
int  line 
)

◆ coda_note()

void coda_note ( const char *  pred,
const char *  file,
int  line 
)

Variable Documentation

◆ coda_assert_action

int coda_assert_action
extern

◆ coda_assert_cleanup

void(* coda_assert_cleanup) (void) ( void  )
extern