/usr/include/schroedinger-1.0/schroedinger/schrodebug.h is in libschroedinger-dev 1.0.11-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | #ifndef __SCHRO_DEBUG_H__
#define __SCHRO_DEBUG_H__
#include <schroedinger/schroutils.h>
#include <stdarg.h>
#include <stdlib.h>
SCHRO_BEGIN_DECLS
enum
{
SCHRO_LEVEL_NONE = 0,
SCHRO_LEVEL_ERROR,
SCHRO_LEVEL_WARNING,
SCHRO_LEVEL_INFO,
SCHRO_LEVEL_DEBUG,
SCHRO_LEVEL_LOG
};
#ifdef SCHRO_ENABLE_UNSTABLE_API
enum
{
SCHRO_DUMP_SUBBAND_CURVE,
SCHRO_DUMP_SUBBAND_EST,
SCHRO_DUMP_PICTURE,
SCHRO_DUMP_PSNR,
SCHRO_DUMP_SSIM,
SCHRO_DUMP_LAMBDA_CURVE,
SCHRO_DUMP_HIST_TEST,
SCHRO_DUMP_SCENE_CHANGE,
SCHRO_DUMP_PHASE_CORR,
SCHRO_DUMP_MOTIONEST,
SCHRO_DUMP_LAST
};
#endif
typedef void (*SchroDebugLogFunc) (int level, const char *file,
const char *func, int line, const char *format, va_list varargs);
#define SCHRO_ERROR(...) \
SCHRO_DEBUG_LEVEL(SCHRO_LEVEL_ERROR, __VA_ARGS__)
#define SCHRO_WARNING(...) \
SCHRO_DEBUG_LEVEL(SCHRO_LEVEL_WARNING, __VA_ARGS__)
#define SCHRO_INFO(...) \
SCHRO_DEBUG_LEVEL(SCHRO_LEVEL_INFO, __VA_ARGS__)
#define SCHRO_DEBUG(...) \
SCHRO_DEBUG_LEVEL(SCHRO_LEVEL_DEBUG, __VA_ARGS__)
#define SCHRO_LOG(...) \
SCHRO_DEBUG_LEVEL(SCHRO_LEVEL_LOG, __VA_ARGS__)
#define SCHRO_DEBUG_LEVEL(level,...) \
schro_debug_log ((level), __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
#define SCHRO_ASSERT(test) do { \
if (!(test)) { \
SCHRO_ERROR("assertion failed: " #test ); \
abort(); \
} \
} while(0)
#define SCHRO_MILD_ASSERT(test) do { \
if (!(test)) { \
SCHRO_ERROR("mild assertion failed: " #test ); \
abort(); \
} \
} while(0)
void schro_debug_log (int level, const char *file, const char *function,
int line, const char *format, ...);
void schro_debug_set_level (int level);
int schro_debug_get_level (void);
void schro_debug_set_log_function (SchroDebugLogFunc func);
#ifdef SCHRO_ENABLE_UNSTABLE_API
void schro_dump (int type, const char *format, ...);
#endif
SCHRO_END_DECLS
#endif
|