75 #include <jasper/jas_config.h>
94 #define JAS_DBGLOG(n, x) \
95 ((jas_get_debug_level() >= (n)) ? (jas_eprintf x) : 0)
97 #define JAS_DBGLOG(n, x)
101 #define JAS_LOGDEBUGF(n, ...) \
102 ((jas_get_debug_level() >= (n)) ? jas_logdebugf((n), __VA_ARGS__) : 0)
104 #define JAS_LOGDEBUGF(n, ...)
189 int jas_memdump(FILE *out,
const void *data,
size_t len);
195 #define JAS_STRINGIFY(x) #x
201 #define JAS_STRINGIFYX(x) JAS_STRINGIFY(x)
static int jas_get_debug_level(void)
Get the debug level for a particular context.
Definition: jas_init.h:429
JasPer Debugging-Related Functionality.
JAS_EXPORT int jas_logprintf(const char *fmt,...)
Generate a generic log message.
Definition: jas_debug.c:107
static JAS_DEPRECATED int jas_getdbglevel(void)
Get the library debug level.
Definition: jas_debug.h:123
JAS_EXPORT int jas_logwarnf(const char *fmt,...)
Generate a warning log message.
Definition: jas_debug.c:131
int jas_logmemdump(const void *data, size_t len)
Dump memory.
Definition: jas_debug.c:245
JAS_EXPORT int jas_eprintf(const char *fmt,...)
Print formatted text for the standard error stream (i.e., stderr).
Definition: jas_debug.c:96
JAS_EXPORT int jas_logdebugf(int priority, const char *fmt,...)
Generate a debugging log message.
Definition: jas_debug.c:155
JAS_EXPORT int jas_loginfof(const char *fmt,...)
Generate an informational log message.
Definition: jas_debug.c:143
JAS_EXPORT int jas_setdbglevel(int dbglevel)
Set the library debug level.
Definition: jas_debug.c:83
JAS_EXPORT void jas_deprecated(const char *fmt,...)
Warn about the use of deprecated functionality.
Definition: jas_debug.c:266
JAS_EXPORT int jas_logerrorf(const char *fmt,...)
Generate an error log message.
Definition: jas_debug.c:119
JAS_EXPORT int jas_memdump(FILE *out, const void *data, size_t len)
Dump memory to a stream.
Definition: jas_debug.c:227
JasPer Initialization/Cleanup Code.