~jfpacker/pyeigen/bugfixes-0.1

« back to all changes in this revision

Viewing changes to source/vector/vector3f.cpp

  • Committer: Jussi Lepistö
  • Date: 2010-03-26 06:43:38 UTC
  • mfrom: (17.1.3 pyeigen)
  • Revision ID: jussi.lepisto@iki.fi-20100326064338-030cerxhy7rx0m5c
Merge from py3k branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
 
132
132
#if PY_VERSION_HEX >= 0x03000000
133
133
PyMappingMethods Vector3f_mappingmethods = {
134
 
        (lenfunc)Vector3f_map_length,                           // mp_length
 
134
        (lenfunc)Vector3f_length,                               // mp_length
135
135
        (binaryfunc)Vector3f_map_subscript,                     // mp_subscript
136
136
        (objobjargproc)Vector3f_map_ass_subscript,      // mp_ass_subscript
137
137
};
698
698
 
699
699
// Mapping methods
700
700
#if PY_VERSION_HEX >= 0x03000000
701
 
Py_ssize_t Vector3f_map_length(Vector3f* self)
702
 
{
703
 
        return Vector3f_length(self);
704
 
}
705
 
 
706
701
PyObject* Vector3f_map_subscript(Vector3f* self, PyObject* index)
707
702
{
708
703
        if(PyIndex_Check(index))