g_value_new Macro?



Hi,

I use the following in my code. Is there a reason why its not in the
GValue API? Is it evil? If not, wouldn't it be nice to include it?

#define	g_value_new(type)	g_value_init (g_new (GValue, 1), type)

My 2 cents,
Ryan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]