Mercurial > libavutil.hg
comparison internal.h @ 285:c529dbdea4f7 libavutil
Give context to dprintf
author | mbardiaux |
---|---|
date | Mon, 12 Mar 2007 12:36:41 +0000 |
parents | 0e64c1d076ef |
children | 39cdbea1a8f1 |
comparison
equal
deleted
inserted
replaced
284:4dd91a7d8633 | 285:c529dbdea4f7 |
---|---|
148 #endif | 148 #endif |
149 #include <assert.h> | 149 #include <assert.h> |
150 | 150 |
151 /* dprintf macros */ | 151 /* dprintf macros */ |
152 #ifdef DEBUG | 152 #ifdef DEBUG |
153 # define dprintf(...) av_log(NULL, AV_LOG_DEBUG, __VA_ARGS__) | 153 # define dprintf(pctx, ...) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__) |
154 #else | 154 #else |
155 # define dprintf(...) | 155 # define dprintf(pctx, ...) |
156 #endif | 156 #endif |
157 | 157 |
158 #define av_abort() do { av_log(NULL, AV_LOG_ERROR, "Abort at %s:%d\n", __FILE__, __LINE__); abort(); } while (0) | 158 #define av_abort() do { av_log(NULL, AV_LOG_ERROR, "Abort at %s:%d\n", __FILE__, __LINE__); abort(); } while (0) |
159 | 159 |
160 /* math */ | 160 /* math */ |