diff options
author | 2015-05-07 10:50:57 -0700 | |
---|---|---|
committer | 2015-05-07 10:50:57 -0700 | |
commit | 2b84e229852d9c7232e87dd2b918c1cd3b31decc (patch) | |
tree | 41eee9366bb8113ce8e51e6ad8290aeff66fb019 /include | |
parent | 691ff71da5f4baf4a027b157cf8b6f64697e0a6f (diff) | |
parent | 63733efd730316c0317a5df4f288aac242014d91 (diff) |
Merge remote-tracking branch 'upstream/master' into mock
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc/support/useful.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/grpc/support/useful.h b/include/grpc/support/useful.h index 979f3d026b..e1ce0455c6 100644 --- a/include/grpc/support/useful.h +++ b/include/grpc/support/useful.h @@ -45,4 +45,11 @@ #define GPR_ARRAY_SIZE(array) (sizeof(array) / sizeof(*(array))) +#define GPR_SWAP(type, a, b) \ + do { \ + type x = a; \ + a = b; \ + b = x; \ + } while (0) + #endif /* GRPC_SUPPORT_USEFUL_H */ |