build_type_xam.cpp#

View page source

C++: 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  );
}