/*! * \file config,h * \brief Build configuration file. * * \author * Christos Choutouridis AEM:8997 * */ #ifndef CONFIG_H_ #define CONFIG_H_ #include #include #include #include /* * Defines for different version of the exercise */ #define V12 2 #define V3 3 #define V4 4 // Fail-safe version selection #if !defined CODE_VERSION #define CODE_VERSION V4 #endif // matrix alias template dispatcher based on pre-define flag from compiler (see Makefile) #if CODE_VERSION == V12 using namespace v12; using matrix = v12::matrix; #elif CODE_VERSION == V3 using namespace v3; using matrix = v3::matrix; #elif CODE_VERSION == V4 using namespace v4; using matrix = v4::matrix; #endif #endif /* CONFIG_H_ */