seg-database-c/demo/demo_typedef.h
2026-07-10 17:53:18 +08:00

24 lines
512 B
C

#ifndef _DEMO_TYPEDEF_H_
#define _DEMO_TYPEDEF_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/time.h>
#define API_DEBUG 1
#define API_DEBUG_ERR 1
#define LOG(format, ...) \
if (API_DEBUG) \
printf("[DEBUG|%s@%s,%d] " format "\n", \
__FUNCTION__, __FILE__, __LINE__, ##__VA_ARGS__)
#define LOG_MSG(format, ...) \
if (API_DEBUG_ERR) \
printf("[DEBUG|%s@%s,%d] " format "\n", \
__FUNCTION__, __FILE__, __LINE__, ##__VA_ARGS__)
#endif