From db9124f1de0478dcac525009b6f1589b44a7edd8 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 26 Apr 2019 16:59:41 -0700 Subject: Apply format changes from #2048 (#2059) Mass change to apply clang-format to everything. We are applying this in a PR by me so the (git) blame is all mine ;) but @aheejin did all the work to get clang-format set up and all the manual work to tidy up some things to make the output nicer in #2048 --- src/support/alloc.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/support/alloc.h') diff --git a/src/support/alloc.h b/src/support/alloc.h index 075896694..d85cbb0f7 100644 --- a/src/support/alloc.h +++ b/src/support/alloc.h @@ -35,10 +35,11 @@ inline void* aligned_malloc(size_t align, size_t size) { #if defined(WIN32) || defined(_WIN32) _set_errno(0); void* ret = _aligned_malloc(size, align); - if (errno == ENOMEM) ret = nullptr; + if (errno == ENOMEM) + ret = nullptr; return ret; #elif defined(__APPLE__) - void *ptr; + void* ptr; int result = posix_memalign(&ptr, align, size); return result == 0 ? ptr : nullptr; #else @@ -56,4 +57,4 @@ inline void aligned_free(void* ptr) { } // namespace wasm -#endif // wasm_support_alloc_h +#endif // wasm_support_alloc_h -- cgit v1.2.3