JasPer Debugging-Related Functionality. More...
#include <jasper/jas_config.h>
#include "jasper/jas_init.h"
#include "jasper/jas_debug.h"
#include <stdio.h>
#include <stdarg.h>
Go to the source code of this file.
Macros | |
#define | JAS_STRINGIFY(x) #x |
Convert to a string literal. More... | |
#define | JAS_STRINGIFYX(x) JAS_STRINGIFY(x) |
Convert to a string literal after macro expansion. More... | |
Functions | |
JAS_EXPORT void | jas_deprecated (const char *fmt,...) |
Warn about the use of deprecated functionality. More... | |
static JAS_DEPRECATED int | jas_getdbglevel (void) |
Get the library debug level. More... | |
JAS_EXPORT int | jas_setdbglevel (int dbglevel) |
Set the library debug level. More... | |
JAS_EXPORT int | jas_eprintf (const char *fmt,...) |
Print formatted text for the standard error stream (i.e., stderr). More... | |
JAS_EXPORT int | jas_logprintf (const char *fmt,...) |
Generate a generic log message. More... | |
JAS_EXPORT int | jas_logerrorf (const char *fmt,...) |
Generate an error log message. More... | |
JAS_EXPORT int | jas_logwarnf (const char *fmt,...) |
Generate a warning log message. More... | |
JAS_EXPORT int | jas_loginfof (const char *fmt,...) |
Generate an informational log message. More... | |
JAS_EXPORT int | jas_logdebugf (int priority, const char *fmt,...) |
Generate a debugging log message. More... | |
int | jas_logmemdump (const void *data, size_t len) |
Dump memory. More... | |
JAS_EXPORT int | jas_memdump (FILE *out, const void *data, size_t len) |
Dump memory to a stream. More... | |
JasPer Debugging-Related Functionality.
#define JAS_STRINGIFY | ( | x | ) | #x |
Convert to a string literal.
#define JAS_STRINGIFYX | ( | x | ) | JAS_STRINGIFY(x) |
Convert to a string literal after macro expansion.
JAS_EXPORT void jas_deprecated | ( | const char * | fmt, |
... | |||
) |
Warn about the use of deprecated functionality.
JAS_EXPORT int jas_eprintf | ( | const char * | fmt, |
... | |||
) |
Print formatted text for the standard error stream (i.e., stderr).
|
inlinestatic |
Get the library debug level.
JAS_EXPORT int jas_logdebugf | ( | int | priority, |
const char * | fmt, | ||
... | |||
) |
Generate a debugging log message.
JAS_EXPORT int jas_logerrorf | ( | const char * | fmt, |
... | |||
) |
Generate an error log message.
JAS_EXPORT int jas_loginfof | ( | const char * | fmt, |
... | |||
) |
Generate an informational log message.
int jas_logmemdump | ( | const void * | data, |
size_t | len | ||
) |
Dump memory.
JAS_EXPORT int jas_logprintf | ( | const char * | fmt, |
... | |||
) |
Generate a generic log message.
JAS_EXPORT int jas_logwarnf | ( | const char * | fmt, |
... | |||
) |
Generate a warning log message.
JAS_EXPORT int jas_memdump | ( | FILE * | out, |
const void * | data, | ||
size_t | len | ||
) |
Dump memory to a stream.
JAS_EXPORT int jas_setdbglevel | ( | int | dbglevel | ) |
Set the library debug level.