RDKit
Open-source cheminformatics and machine learning.
import_array.h
Go to the documentation of this file.
1 #ifndef RDKIT_IMPORT_ARRAY_INCLUDED
2 #define RDKIT_IMPORT_ARRAY_INCLUDED
3 
4 #if PY_MAJOR_VERSION >= 3
5  void * rdkit_import_array()
6 #else
8 #endif
9  {
10  // numpy's import_array is defined as a macro that expands into a block
11  // statement that inlines a return. In python3 it returns a NULL value
12  // (to comply with the Py_InitModule signature) so it can't be called
13  // directly from within the BOOST_PYTHON_MODULE init function (that
14  // returns void)
15  import_array();
16 #if defined(_MSC_VER) && (PY_MAJOR_VERSION >= 3)
17  return NULL;
18 #endif
19  }
20 
21 #endif
void rdkit_import_array()
Definition: import_array.h:7