aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_assert.h
diff options
context:
space:
mode:
authorChun-Min Chang <[email protected]>2021-07-27 11:22:59 -0700
committerMatthew Gregan <[email protected]>2021-07-28 09:29:48 +1200
commitf4ef497bbe74cac2af30de74e2a80fba9c0888f0 (patch)
tree6c650e3b40bde3105648987bf070b878337a53d6 /src/cubeb_assert.h
parente1456788c48c5ed6b55bc107a7342d63f2a08413 (diff)
downloadcubeb-f4ef497bbe74cac2af30de74e2a80fba9c0888f0.tar.gz
cubeb-f4ef497bbe74cac2af30de74e2a80fba9c0888f0.zip
Run .clang-format
Format all the code under `include` and `src` except those files under `src/speex` with style setting in `.clang-format` file by the following script: ```sh FILE_LIST="$(find "include" "src" -not -path "src/speex/*" | grep -E ".*(\.cpp|\.c|\.h|\.hpp|\.hh)$")" echo "Files found to format:\n---\n$FILE_LIST\n---" clang-format --verbose -i $FILE_LIST ```
Diffstat (limited to 'src/cubeb_assert.h')
-rw-r--r--src/cubeb_assert.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cubeb_assert.h b/src/cubeb_assert.h
index 9257a2c..d81a1ea 100644
--- a/src/cubeb_assert.h
+++ b/src/cubeb_assert.h
@@ -16,7 +16,8 @@
* export a function or macro called XASSERT that aborts the program.
*/
-#define XASSERT(expr) do { \
+#define XASSERT(expr) \
+ do { \
if (!(expr)) { \
fprintf(stderr, "%s:%d - fatal error: %s\n", __FILE__, __LINE__, #expr); \
abort(); \