diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-05-01 12:53:43 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-05-01 09:42:31 -0700 |
commit | c13040798c66c5254fbcc921842cd519da05a4c5 (patch) | |
tree | 52ffa1931f0a51b8c709b02b3b26fcbc0f273f30 /core/units.h | |
parent | 8ce7c4664a71f86c49091f7ddec10fbc0cccf095 (diff) | |
download | subsurface-c13040798c66c5254fbcc921842cd519da05a4c5.tar.gz |
cleanup: move FRACTION macro from dive.h to units.h
There appears to be no reason to slurp in all dive.h when compiling
membuffer.c. units.h might not seem like the perfect place, but it
is the most fitting I found.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/units.h')
-rw-r--r-- | core/units.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/units.h b/core/units.h index 8839dde1d..4232e24a3 100644 --- a/core/units.h +++ b/core/units.h @@ -13,6 +13,8 @@ extern "C" { #include <stdbool.h> #endif +#define FRACTION(n, x) ((unsigned)(n) / (x)), ((unsigned)(n) % (x)) + #define O2_IN_AIR 209 // permille #define N2_IN_AIR 781 #define O2_DENSITY 1331 // mg/Liter |