Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef QF_ASSERT
- # ifdef QT_NO_DEBUG
- # define QF_ASSERT(X,Y) X
- # else
- # define QF_ASSERT(X,Y) QtFFmpeg::assert(X,Y)
- # endif
- #endif
- bool assert(int value, char *message)
- {
- if (value<0)
- {
- qWarning("%s: error=%d(%s)", message, value, err2str(value));
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement