/home/bifh1/fremantle-i386-fremantle-pe1.cs2007q3/work/libplayback-0.5/libplayback/playback-macros.h File Reference

Go to the source code of this file.

Defines

#define PB_STRINGIFY(macro_or_string)   PB_STRINGIFY_ARG (macro_or_string)
#define PB_STRINGIFY_ARG(contents)   #contents
#define TRUE   1
#define FALSE   0
#define NULL   ((void*) 0)
#define PB_BEGIN_DECLS
#define PB_END_DECLS
#define PB_STRLOC   __FILE__ ":" PB_STRINGIFY (__LINE__)
#define PB_LOG(...)
#define pb_return_if_fail(Exp)
#define pb_return_val_if_fail(Exp, Val)
#define pb_n_elements(x)   (sizeof(x)/sizeof(x[0]))


Define Documentation

#define FALSE   0

#define NULL   ((void*) 0)

#define PB_BEGIN_DECLS

#define PB_END_DECLS

#define PB_LOG ( ...   ) 

#define pb_n_elements (  )     (sizeof(x)/sizeof(x[0]))

#define pb_return_if_fail ( Exp   ) 

Value:

do{                     \
        if ((Exp) == FALSE) {                           \
                PB_LOG ("assertion %s failed", #Exp);   \
                return ;                                \
        }                                               \
}while(0)

#define pb_return_val_if_fail ( Exp,
Val   ) 

Value:

do{             \
        if ((Exp) == FALSE) {                           \
                PB_LOG ("assertion %s failed", #Exp);   \
                return (Val);                           \
        }                                               \
}while(0)

#define PB_STRINGIFY ( macro_or_string   )     PB_STRINGIFY_ARG (macro_or_string)

#define PB_STRINGIFY_ARG ( contents   )     #contents

#define PB_STRLOC   __FILE__ ":" PB_STRINGIFY (__LINE__)

#define TRUE   1


Generated on Tue Aug 3 15:09:04 2010 for libplayback-1 by  doxygen 1.5.6