26#ifndef __NO_DUP_LOG_HEADER_GUARD__
27#define __NO_DUP_LOG_HEADER_GUARD__
52#define n_nodup_log(__LEVEL__, ...) \
54 _n_nodup_log(__LEVEL__, __FILE__, __func__, __LINE__, __VA_ARGS__); \
58#define n_nodup_log_indexed(__LEVEL__, __PREF__, ...) \
60 _n_nodup_log_indexed(__LEVEL__, __PREF__, __FILE__, __func__, __LINE__, __VA_ARGS__); \
64void _n_nodup_log(
int LEVEL,
const char* file,
const char* func,
int line,
const char* format, ...);
66void _n_nodup_log_indexed(
int LEVEL,
const char* prefix,
const char* file,
const char* func,
int line,
const char* format, ...);
int init_nodup_log(size_t max)
init the nodup log internal hash table
int dump_nodup_log(char *file)
dump the nodup log hash table to a file in human-readable form
int close_nodup_log()
close the nodup log session
void _n_nodup_log(int LEVEL, const char *file, const char *func, int line, const char *format,...)
log a message only once per unique location
int empty_nodup_table()
empty the nodup table
void _n_nodup_log_indexed(int LEVEL, const char *prefix, const char *file, const char *func, int line, const char *format,...)
log a message only once per unique prefix and location
Common headers and low-level functions & define.
Hash functions and table.
List structures and definitions.
N_STR and string function declaration.