Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/kentdlee/CoCo.git
Browse files Browse the repository at this point in the history
  • Loading branch information
kent committed Jan 16, 2014
2 parents 9cccfce + f004045 commit c40a266
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions PyException.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,25 +57,25 @@ using namespace std;
class PyException: public PyObject {
public:
PyException(int exceptType, PyObject* val);
PyException(int exceptType, string message);
PyException(int exceptType, string message);
virtual ~PyException();
int getExceptionType();
void tracebackAppend(PyFrame* frame);
void tracebackAppend(PyFrame* frame);
string toString();
PyType* getType();
PyObject* getTraceBack();
void printTraceBack();
PyType* getType();
PyObject* getTraceBack();
void printTraceBack();


protected:
/* This is only here for debugging purposes. The exception type should be
* the second field within the object if the first field indicates an exception.
*/
int exceptionType;
PyObject* val;
vector<PyFrame*> traceback;
PyObject* val;
vector<PyFrame*> traceback;

virtual PyObject* __excmatch__(vector<PyObject*>* args);
virtual PyObject* __excmatch__(vector<PyObject*>* args);
};

const int PYEXCEPTION = 1;
Expand Down
2 changes: 1 addition & 1 deletion PyObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <sstream>
using namespace std;

ostream &operator <<(ostream &os, PyObject &t) {
ostream& operator <<(ostream &os, PyObject &t) {
return os << t.toString();
}

Expand Down

0 comments on commit c40a266

Please sign in to comment.