~jfpacker/pyeigen/bugfixes-0.1

« back to all changes in this revision

Viewing changes to source/util/macros.h

  • Committer: Jussi Lepistö
  • Date: 2010-03-21 22:43:37 UTC
  • Revision ID: jussi.lepisto@iki.fi-20100321224337-oahotm631wkye0f6
- ==, != operators
- You can now give either none or all arguments to constructors, and set() only accepts all arguments
- Vector2f fixes (code review for other classes to be done)
- Vector transpose
- Basic unit tests for all classes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef MACROS_H
2
2
#define MACROS_H
3
3
 
4
 
#define RETURN_NOTIMPLEMENTED \
5
 
{ \
6
 
        Py_INCREF(Py_NotImplemented); \
7
 
        return Py_NotImplemented; \
8
 
}
 
4
#define pyeigen_RETURN_NOTIMPLEMENTED return Py_INCREF(Py_NotImplemented), Py_NotImplemented
 
5
#define pyeigen_RETURN_TRUE return Py_INCREF(Py_True), Py_True
 
6
#define pyeigen_RETURN_FALSE return Py_INCREF(Py_False), Py_False
9
7
 
10
8
#endif