swig: %include Event before PythonEvent so python gets the subclass correct.
authorNathan Binkert <nate@binkert.org>
Mon, 1 Jun 2009 23:38:57 +0000 (16:38 -0700)
committerNathan Binkert <nate@binkert.org>
Mon, 1 Jun 2009 23:38:57 +0000 (16:38 -0700)
Before this change, some versions of swig would cause PythonEvent to be
derived from object instead of Event

src/python/swig/event.i

index 99fde2d5bdee3eed1be692e2fc879dcb2d84e784..1e3b26a9670ca5ee5e518d69a994926bddb678ec 100644 (file)
@@ -77,8 +77,8 @@
 %include "std_string.i"
 
 %include "base/types.hh"
-%include "python/swig/pyevent.hh"
 %include "sim/eventq.hh"
+%include "python/swig/pyevent.hh"
 
 struct CountedDrainEvent : public Event
 {