2012年11月2日

自定义debug函数

摘要: 简单的DEBUG宏/********************** debug.h *************************/#ifndef _DEBUG_H_#define _DEBUG_H_#define DEBUG#ifdef DEBUG//#define TOY_DEBUG(format, ...) fprintf (stderr, format, ## __VA_ARGS__)#define TOY_DEBUG(format, ...) printf (format, ## __VA_ARGS__)#else#define TOY_DEBUG(format, ...... 阅读全文

posted @ 2012-11-02 12:54 cfox 阅读(438) 评论(0) 推荐(0) 编辑

导航