20#ifndef PED_DEBUG_H_INCLUDED
21#define PED_DEBUG_H_INCLUDED
27typedef void (PedDebugHandler) (
const int level,
const char* file,
int line,
28 const char* function,
const char* msg );
30extern void ped_debug_set_handler (PedDebugHandler* handler);
31extern void ped_debug (
const int level,
const char* file,
int line,
32 const char* function,
const char* msg, ... );
35ped_assert (
const char* cond_text,
36 const char* file,
int line,
const char* function );
38#if defined __GNUC__ && !defined __JSFTRACE__
40#define PED_DEBUG(level, ...) \
41 ped_debug ( level, __FILE__, __LINE__, __PRETTY_FUNCTION__, \
44#define PED_ASSERT(cond) \
51 __PRETTY_FUNCTION__ ); \
62 va_start (va_args, level);
63 ped_debug ( level,
"unknown file", 0,
"unknown function", va_args );
67#define PED_ASSERT(cond) \
82#define PED_ASSERT(cond) do {} while (0)
83#define PED_DEBUG(level, ...) do {} while (0)
typedef __attribute__
Definition: vtoc.h:80
#define PED_DEBUG(level,...)
Definition: debug.in.h:83