[mpp_log]: use dynamic abort to replace static compiled mpp_abort

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@864 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2016-06-02 10:08:19 +00:00
parent 788ae5dd63
commit d24e6800f1

View File

@@ -54,6 +54,7 @@
#define MPP_TIMING (0x00000001) #define MPP_TIMING (0x00000001)
#define MPP_ABORT (0x10000000)
/* /*
* mpp_dbg usage: * mpp_dbg usage:
@@ -86,12 +87,11 @@
* 24~31 bit: information print format * 24~31 bit: information print format
*/ */
#ifdef __DEBUG #define mpp_abort() do { \
#define mpp_abort() abort() if (mpp_debug & MPP_ABORT) { \
#else abort(); \
#define mpp_abort() } \
#endif } while (0)
#define MPP_STRINGS(x) MPP_TO_STRING(x) #define MPP_STRINGS(x) MPP_TO_STRING(x)
#define MPP_TO_STRING(x) #x #define MPP_TO_STRING(x) #x