tornavis/source/blender/compositor
Sergey Sharybin 598ab525da Cleanup: Replace ABS/SQUARE/CUBE with function calls
While it might be handy to have type-less functionality which is
similar to how C++ math is implemented it can not be easily achieved
with just preprocessor in a way which does not have side-effects on
wrong usage.

There macros where often used on a non-trivial expression, and there
was at least one usage where it was causing an actual side effect/bug
on Windows (see change around square_f(sh[index++]) in studiolight.c).

For such cases it is handy to have a function which is guaranteed to
have zero side-effects. The motivation behind actually removing the
macros is that there is already a way to do similar calculation. Also,
not having such macros is a way to guarantee that its usage is not
changed in a way which have side-effects and that it's not used as an
inspiration for cases where it should not be used.

Differential Revision: https://developer.blender.org/D7051
2020-03-09 14:47:59 +01:00
..
intern Cleanup: Fix forward declaration of headers 2020-03-06 17:26:32 +01:00
nodes Cleanup: remove contributors, license begin/end & doxy file argument 2019-12-17 09:27:01 +11:00
operations Cleanup: Replace ABS/SQUARE/CUBE with function calls 2020-03-09 14:47:59 +01:00
CMakeLists.txt Cleanup: cmake indentation 2020-03-04 11:02:35 +11:00
COM_compositor.h Cleanup: comments (long lines) in compositor 2019-05-01 07:58:27 +10:00
COM_defines.h Cleanup: spelling in comments 2019-06-12 09:43:49 +10:00