preprocessor

View page source

CppAD API Preprocessor Symbols

Rule

The CppAD include files defines preprocessor symbols all of which begin with CPPAD_ . Note that there are some old, deprecated preprocessor symbols that begin with CppAD . In this section we list all of the CppAD preprocessor symbols that are part of the CppAD Application Interface (API).

NOMINMAX, windows.h

There is one exception to the rule above, when using the Microsoft Visual Studio compiler and including windows.h , it is done as follows:

# ifndef NOMINMAX
# define NOMINMAX
# endif
# include <windows.h>

Documented Here

CPPAD_NULL

Deprecated 2020-12-03: This preprocessor symbol was used for a null pointer before c++11. Replace it by nullptr .

CPPAD_PACKAGE_STRING

Is a const char* representation of this version of CppAD.

CPPAD_USE_CPLUSPLUS_2011

Deprecated 2020-12-03: Is it OK for CppAD to use C++11 features. This is always 1 (for true).

CPPAD_USE_CPLUSPLUS_2017

Is it OK for CppAD to use C++17 features.

Documented Elsewhere

Deprecated