mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-14 22:02:09 +08:00
enclose macro arguments in parentheses (#21947)
* macro argument should be enclosed in parentheses * CL_CHECK old-commit-hash: 4625098a7953308cc76c6c9b81d28e6bb89f671c
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
#define CL_CHECK(_expr) \
|
||||
do { \
|
||||
assert(CL_SUCCESS == _expr); \
|
||||
assert(CL_SUCCESS == (_expr)); \
|
||||
} while (0)
|
||||
|
||||
#define CL_CHECK_ERR(_expr) \
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
#include "selfdrive/loggerd/include/msm_media_info.h"
|
||||
|
||||
// Check the OMX error code and assert if an error occurred.
|
||||
#define OMX_CHECK(_expr) \
|
||||
do { \
|
||||
assert(OMX_ErrorNone == _expr); \
|
||||
#define OMX_CHECK(_expr) \
|
||||
do { \
|
||||
assert(OMX_ErrorNone == (_expr)); \
|
||||
} while (0)
|
||||
|
||||
extern ExitHandler do_exit;
|
||||
|
||||
Reference in New Issue
Block a user