~jfpacker/pyeigen/bugfixes-0.1

« back to all changes in this revision

Viewing changes to source/vector/rowvector4f.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:
141
141
 
142
142
#if PY_VERSION_HEX >= 0x03000000
143
143
PyMappingMethods RowVector4f_mappingmethods = {
144
 
        (lenfunc)RowVector4f_map_length,                                // mp_length
 
144
        (lenfunc)RowVector4f_length,                            // mp_length
145
145
        (binaryfunc)RowVector4f_map_subscript,                  // mp_subscript
146
146
        (objobjargproc)RowVector4f_map_ass_subscript,   // mp_ass_subscript
147
147
};
716
716
 
717
717
// Mapping methods
718
718
#if PY_VERSION_HEX >= 0x03000000
719
 
Py_ssize_t RowVector4f_map_length(RowVector4f* self)
720
 
{
721
 
        return RowVector4f_length(self);
722
 
}
723
 
 
724
719
PyObject* RowVector4f_map_subscript(RowVector4f* self, PyObject* index)
725
720
{
726
721
        if(PyIndex_Check(index))