From 8ddf32196c6bca9c3a80414222327eebd5d51835 Mon Sep 17 00:00:00 2001 From: Markus Ferrell Date: Fri, 10 Feb 2023 16:07:06 -0500 Subject: 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. --- Help/guide/tutorial/Step5/MathFunctions/MathFunctions.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Help/guide/tutorial/Step5/MathFunctions/MathFunctions.h') diff --git a/Help/guide/tutorial/Step5/MathFunctions/MathFunctions.h b/Help/guide/tutorial/Step5/MathFunctions/MathFunctions.h index cd36bccffd..d5c2f224bf 100644 --- a/Help/guide/tutorial/Step5/MathFunctions/MathFunctions.h +++ b/Help/guide/tutorial/Step5/MathFunctions/MathFunctions.h @@ -1 +1,5 @@ -double mysqrt(double x); +#pragma once + +namespace mathfunctions { +double sqrt(double x); +} -- cgit v1.2.1