1 Star 0 Fork 1

snowingbear/h264_to_rtp

forked from houwentaoff/h264_to_rtp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
debug_log.h 749 Bytes
一键复制 编辑 原始数据 按行查看 历史
mingang.he 提交于 2012-12-21 16:43 +08:00 . run ok, not finished
#ifndef _DEBUG_LOG_H
#define _DEBUG_LOG_H
#include <stdio.h>
#include <string.h>
#define DEBUG 1
#if DEBUG
FILE *DEBUG_LOG_FILE;
char DEBUG_STRING[1024];
#else
FILE *DEBUG_LOG_FILE;
char *DEBUG_STRING;
#endif
#define open_debug_log(filename) do { \
if (DEBUG) { \
DEBUG_LOG_FILE = fopen(filename, "w"); \
} \
} while (0)
#define debug_log(fmt, ...) do { \
if (DEBUG) { \
snprintf(DEBUG_STRING, 1023, "%s: %s(): %d: " fmt "\n", __FILE__, __func__, __LINE__, ##__VA_ARGS__); \
fwrite(DEBUG_STRING, 1, strlen(DEBUG_STRING), DEBUG_LOG_FILE); \
fflush(DEBUG_LOG_FILE); \
} \
} while (0)
#define close_debug_log() do { \
if (DEBUG) { \
fclose(DEBUG_LOG_FILE); \
} \
} while (0)
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/snowingbear/h264_to_rtp.git
git@gitee.com:snowingbear/h264_to_rtp.git
snowingbear
h264_to_rtp
h264_to_rtp
master

搜索帮助