* eet: Make macro EET_EINA_*_DATA_DESCRIPTOR_CLASS_SET usable in if

statement.

        Patch from Raphael Kubo.


SVN revision: 41763
This commit is contained in:
Cedric BAIL 2009-08-14 14:30:56 +00:00
parent c634e07770
commit 67418404d0
2 changed files with 3 additions and 2 deletions

View File

@ -6,3 +6,4 @@ Luis Felipe Strano Moraes <luis.strano@gmail.com>
Chidambar Zinnoury <illogict@online.fr>
Vincent Torri <vtorri@univ-evry.fr>
Gustavo Sverzut Barbieri <barbieri@gmail.com>
Raphael Kubo <kubo@profusion.mobi>

View File

@ -1061,7 +1061,7 @@ extern "C" {
*
* @since 1.3.0
*/
#define EET_EINA_STREAM_DATA_DESCRIPTOR_CLASS_SET(Clas, Type) eet_eina_stream_data_descriptor_class_set(Clas, #Type , sizeof (Type));
#define EET_EINA_STREAM_DATA_DESCRIPTOR_CLASS_SET(Clas, Type) (eet_eina_stream_data_descriptor_class_set(Clas, #Type , sizeof (Type)))
/**
* This function is an helper that set all the parameter of an Eet_Data_Descriptor_Class
@ -1086,7 +1086,7 @@ extern "C" {
*
* @since 1.3.0
*/
#define EET_EINA_FILE_DATA_DESCRIPTOR_CLASS_SET(Clas, Type) eet_eina_file_data_descriptor_class_set(Clas, #Type , sizeof (Type));
#define EET_EINA_FILE_DATA_DESCRIPTOR_CLASS_SET(Clas, Type) (eet_eina_file_data_descriptor_class_set(Clas, #Type , sizeof (Type)))
/**
* This function frees a data descriptor when it is not needed anymore.