diff options
author | Markus Ferrell <markus.ferrell@kitware.com> | 2023-02-10 16:07:06 -0500 |
---|---|---|
committer | Markus Ferrell <markus.ferrell@kitware.com> | 2023-02-23 09:42:10 -0500 |
commit | 8ddf32196c6bca9c3a80414222327eebd5d51835 (patch) | |
tree | 40ad09ab3e93b4d1bbc642fc921f1ddb3737853b /Help/guide/tutorial/Step11/MathFunctions/MathFunctions.cxx | |
parent | 78299083d24fc09c777292effb4fdb9d9ed1d7d3 (diff) | |
download | cmake-8ddf32196c6bca9c3a80414222327eebd5d51835.tar.gz |
Tutorial: Refactor MathFunctions code
Propagate the refactor in Step 10 MathFunctions through all of the
steps. Use MathFunctions/MathFunctions.cxx instead of Tutorial.cxx
to determine which sqrt library is called. Adds .h files which
correspond to their .cxx files by name.
Diffstat (limited to 'Help/guide/tutorial/Step11/MathFunctions/MathFunctions.cxx')
-rw-r--r-- | Help/guide/tutorial/Step11/MathFunctions/MathFunctions.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Help/guide/tutorial/Step11/MathFunctions/MathFunctions.cxx b/Help/guide/tutorial/Step11/MathFunctions/MathFunctions.cxx index 0145300629..c0991b9b98 100644 --- a/Help/guide/tutorial/Step11/MathFunctions/MathFunctions.cxx +++ b/Help/guide/tutorial/Step11/MathFunctions/MathFunctions.cxx @@ -10,6 +10,7 @@ namespace mathfunctions { double sqrt(double x) { +// which square root function should we use? #ifdef USE_MYMATH return detail::mysqrt(x); #else |