NEURON
nrnpython.h File Reference
#include <../../nrnconf.h>
#include <nrnpython_config.h>

Go to the source code of this file.

Namespaces

 PyHoc
 

Macros

#define PyString_FromString   PyUnicode_FromString
 
#define PyInt_Check   PyLong_Check
 
#define PyInt_CheckExact   PyLong_CheckExact
 
#define PyInt_AS_LONG   PyLong_AsLong
 
#define PyInt_AsLong   PyLong_AsLong
 
#define PyInt_FromLong   PyLong_FromLong
 
#define castptr2long   (long)
 

Enumerations

enum  PyHoc::ObjectType {
  PyHoc::HocTopLevelInterpreter = 0 , PyHoc::HocObject = 1 , PyHoc::HocFunction = 2 , PyHoc::HocArray = 3 ,
  PyHoc::HocRefNum = 4 , PyHoc::HocRefStr = 5 , PyHoc::HocRefObj = 6 , PyHoc::HocForallSectionIterator = 7 ,
  PyHoc::HocSectionListIterator = 8 , PyHoc::HocScalarPtr = 9 , PyHoc::HocArrayIncomplete = 10 , PyHoc::HocRefPStr = 11
}
 
enum  PyHoc::IteratorState { PyHoc::Begin , PyHoc::NextNotLast , PyHoc::Last }
 

Functions

PyObject * nrnpy_hoc_pop ()
 
int nrnpy_numbercheck (PyObject *)
 

Macro Definition Documentation

◆ castptr2long

#define castptr2long   (long)

Definition at line 40 of file nrnpython.h.

◆ PyInt_AS_LONG

#define PyInt_AS_LONG   PyLong_AsLong

Definition at line 27 of file nrnpython.h.

◆ PyInt_AsLong

#define PyInt_AsLong   PyLong_AsLong

Definition at line 28 of file nrnpython.h.

◆ PyInt_Check

#define PyInt_Check   PyLong_Check

Definition at line 25 of file nrnpython.h.

◆ PyInt_CheckExact

#define PyInt_CheckExact   PyLong_CheckExact

Definition at line 26 of file nrnpython.h.

◆ PyInt_FromLong

#define PyInt_FromLong   PyLong_FromLong

Definition at line 29 of file nrnpython.h.

◆ PyString_FromString

#define PyString_FromString   PyUnicode_FromString

Definition at line 24 of file nrnpython.h.

Function Documentation

◆ nrnpy_hoc_pop()

PyObject* nrnpy_hoc_pop ( )

Definition at line 547 of file nrnpy_hoc.cpp.

◆ nrnpy_numbercheck()

int nrnpy_numbercheck ( PyObject *  po)

Definition at line 474 of file nrnpy_hoc.cpp.