ModelTree.hh: fix misplaced #endif for include guard

master
Sébastien Villemot 2023-12-01 15:31:55 +01:00
parent c2d6ab8ee0
commit 5af38c8ced
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 21 additions and 20 deletions

View File

@ -18,25 +18,25 @@
*/ */
#ifndef _MODELTREE_HH #ifndef _MODELTREE_HH
# define _MODELTREE_HH #define _MODELTREE_HH
# include <array> #include <array>
# include <cassert> #include <cassert>
# include <condition_variable> #include <condition_variable>
# include <deque> #include <deque>
# include <filesystem> #include <filesystem>
# include <map> #include <map>
# include <mutex> #include <mutex>
# include <optional> #include <optional>
# include <ostream> #include <ostream>
# include <string> #include <string>
# include <thread> #include <thread>
# include <vector> #include <vector>
# include "Bytecode.hh" #include "Bytecode.hh"
# include "DataTree.hh" #include "DataTree.hh"
# include "EquationTags.hh" #include "EquationTags.hh"
# include "ExtendedPreprocessorTypes.hh" #include "ExtendedPreprocessorTypes.hh"
using namespace std; using namespace std;
@ -623,11 +623,11 @@ private:
void copyHelper(const ModelTree& m); void copyHelper(const ModelTree& m);
//! Returns the name of the MATLAB architecture given the extension used for MEX files //! Returns the name of the MATLAB architecture given the extension used for MEX files
static string matlab_arch(const string& mexext); static string matlab_arch(const string& mexext);
# ifdef __APPLE__ #ifdef __APPLE__
/* Finds a suitable compiler on macOS. /* Finds a suitable compiler on macOS.
The boolean is false if this is GCC and true if this is Clang */ The boolean is false if this is GCC and true if this is Clang */
static pair<filesystem::path, bool> findCompilerOnMacos(const string& mexext); static pair<filesystem::path, bool> findCompilerOnMacos(const string& mexext);
# endif #endif
/* Compiles a MEX file (if link=true) or an object file to be linked later /* Compiles a MEX file (if link=true) or an object file to be linked later
into a MEX file (if link=false). The compilation is done in separate into a MEX file (if link=false). The compilation is done in separate
worker threads working in parallel, so the call to this function is not worker threads working in parallel, so the call to this function is not
@ -2500,7 +2500,6 @@ ModelTree::writeSparseModelJuliaFiles(const string& basename) const
writeToFileIfModified(output, julia_dir / (prefix + "G" + to_string(i) + "!.jl")); writeToFileIfModified(output, julia_dir / (prefix + "G" + to_string(i) + "!.jl"));
} }
} }
#endif
template<bool dynamic> template<bool dynamic>
void void
@ -3139,3 +3138,5 @@ ModelTree::writeSetAuxiliaryVariablesFile(const string& basename, bool julia) co
output_file.close(); output_file.close();
} }
} }
#endif