summaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-07-05 23:14:07 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-07-18 05:50:22 -0700
commit469cc68b029ac3308b4338a43acfa21679493e8b (patch)
tree110eaf78f7c1123784313009f2b8ee4844ec16f8 /.clang-format
parent29005b578de4680556f6a3fa01781a8af842ced8 (diff)
downloadsubsurface-469cc68b029ac3308b4338a43acfa21679493e8b.tar.gz
Cleanup: replace pressure reading macros by inline functions
Replace the INTERPOLATED_PRESSURE and SENSOR_PRESSURE macros by inline functions. Generate a common inline function that reads a pressure value for a dynamic sensor. Not all SENSOR_PRESSURE macros can be replaced, because the macro is also used to set the value and C sadly doesn't know the concept of "return reference from a function". Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions