#ifndef __JSUTIL_H__ #define __JSUTIL_H__ #include #include void jswm_log_init(); void jswm_log_printf(const char* fmt, ...); #define jswm_err(fmt, ...) jswm_log_printf("[jswm] Err: "fmt, ## __VA_ARGS__) #define jswm_info(fmt, ...) jswm_log_printf("[jswm] Info: "fmt, ## __VA_ARGS__) #define jswm_warn(fmt, ...) jswm_log_printf("[jswm] Warn: "fmt, ## __VA_ARGS__) #define jswm_dbg(fmt, ...) jswm_log_printf("[jswm] Dbg: "fmt, ## __VA_ARGS__) #define libjswm_err(fmt, ...) jswm_log_printf("[libjswm] Err: "fmt, ## __VA_ARGS__) #define libjswm_info(fmt, ...) jswm_log_printf("[libjswm] Info: "fmt, ## __VA_ARGS__) #define libjswm_warn(fmt, ...) jswm_log_printf("[libjswm] Warn: "fmt, ## __VA_ARGS__) #define libjswm_dbg(fmt, ...) jswm_log_printf("[libjswm] Dbg: "fmt, ## __VA_ARGS__) #include #endif/*__JSUTIL_H__*/