\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\)
build_type_xam.cpp#
View page sourceC++: CppAD Py build_type: Example and Test#
# include <string>
# include <cppad/py/build_type.hpp>
bool build_type_xam(void) {
// initialize return variable
bool ok = true;
//
// buid_type
std::string build_type = cppad_py::build_type();
//
// ok
ok &= build_type == "debug" || build_type == "release";
//
return( ok );
}