mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-08 10:30:04 +08:00
[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:
@@ -54,6 +54,7 @@
|
||||
|
||||
|
||||
#define MPP_TIMING (0x00000001)
|
||||
#define MPP_ABORT (0x10000000)
|
||||
|
||||
/*
|
||||
* mpp_dbg usage:
|
||||
@@ -86,12 +87,11 @@
|
||||
* 24~31 bit: information print format
|
||||
*/
|
||||
|
||||
#ifdef __DEBUG
|
||||
#define mpp_abort() abort()
|
||||
#else
|
||||
#define mpp_abort()
|
||||
#endif
|
||||
|
||||
#define mpp_abort() do { \
|
||||
if (mpp_debug & MPP_ABORT) { \
|
||||
abort(); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define MPP_STRINGS(x) MPP_TO_STRING(x)
|
||||
#define MPP_TO_STRING(x) #x
|
||||
|
Reference in New Issue
Block a user