enclose macro arguments in parentheses (#21947)

* macro argument should be enclosed in parentheses

* CL_CHECK
old-commit-hash: 4625098a7953308cc76c6c9b81d28e6bb89f671c
This commit is contained in:
Dean Lee
2021-08-18 16:56:37 +08:00
committed by GitHub
parent f32b1655e4
commit aff7f0b1f3
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
#define CL_CHECK(_expr) \
do { \
assert(CL_SUCCESS == _expr); \
assert(CL_SUCCESS == (_expr)); \
} while (0)
#define CL_CHECK_ERR(_expr) \
+3 -3
View File
@@ -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;