added comparison function to many python types so you can do == and =!

This commit is contained in:
2006-10-06 16:48:28 +00:00
parent aaaae78527
commit dda63a9dde
21 changed files with 122 additions and 41 deletions

View File

@@ -1431,8 +1431,7 @@ static void Lamp_dealloc( BPy_Lamp * self )
/*****************************************************************************/
static int Lamp_compare( BPy_Lamp * a, BPy_Lamp * b )
{
Lamp *pa = a->lamp, *pb = b->lamp;
return ( pa == pb ) ? 0 : -1;
return ( a->lamp == b->lamp ) ? 0 : -1;
}
/*****************************************************************************/