Difference for plugins/cfpython/include/cfpython_object.h from version 1.1 to 1.2


version 1.1 version 1.2
Line 30
 
Line 30
 typedef struct {  typedef struct {
     PyObject_HEAD      PyObject_HEAD
             object *obj;              object *obj;
               int valid;
               object *del_event;
 } Crossfire_Object;  } Crossfire_Object;
 extern PyTypeObject Crossfire_ObjectType;  extern PyTypeObject Crossfire_ObjectType;
   
 typedef struct {  typedef struct {
     PyObject_HEAD      PyObject_HEAD
             object *obj;              object *obj;
               int valid;
               object *del_event;
 } Crossfire_Player;  } Crossfire_Player;
 extern PyTypeObject Crossfire_PlayerType;  extern PyTypeObject Crossfire_PlayerType;
   
   #define EXISTCHECK( ob ) \
       { \
       if (!ob || ((ob)->valid == 0)) { \
           PyErr_SetString(PyExc_ReferenceError, "Crossfire object no longer exists"); \
           return NULL; \
       } }
      
   #define EXISTCHECK_INT( ob ) \
       { \
       if (!ob || ((ob)->valid == 0)) { \
           PyErr_SetString(PyExc_ReferenceError, "Crossfire object no longer exists"); \
           return -1; \
       } }
   
 #endif /* CFPYTHON_OBJECT_H */  #endif /* CFPYTHON_OBJECT_H */


Legend:
line(s) removed in v.1.1 
line(s) changed
 line(s) added in v.1.2

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:01