[wpdev-commits] wolfpack/python utilities.h,1.42,1.43
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-09-06 22:31:36
|
Update of /cvsroot/wpdev/wolfpack/python In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3567/python Modified Files: utilities.h Log Message: Fixes Index: utilities.h =================================================================== RCS file: /cvsroot/wpdev/wolfpack/python/utilities.h,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** utilities.h 5 Sep 2004 17:43:52 -0000 1.42 --- utilities.h 6 Sep 2004 22:31:26 -0000 1.43 *************** *** 66,75 **** #define PyHasMethod(a) if( codeModule == NULL ) return false; if( !PyObject_HasAttrString( codeModule, a ) ) return false; - // Setting and getting item/char properties - #define setIntProperty( identifier, property ) if( !strcmp( name, identifier ) ) self->property = PyInt_AS_LONG( value ); - #define setStrProperty( identifier, property ) if( !strcmp( name, identifier ) ) self->property = PyString_AS_STRING( value ); - #define getIntProperty( identifier, property ) if( !strcmp( name, identifier ) ) return PyInt_FromLong( self->property ); - #define getStrProperty( identifier, property ) if( !strcmp( name, identifier ) ) return PyString_FromString( self->property ); - void wpDealloc( PyObject* self ); --- 66,69 ---- |