Re: G_CONST_RETURN



On Fri, Nov 19, 2004 at 12:56:30PM -0700, Neil Zanella wrote:
> When looking at the GTK API I see several places that use G_CONST_RETURN.
> What are these macros there?

http://developer.gnome.org/doc/API/2.0/glib/glib-Standard-Macros.html#G-CONST-RETURN:CAPS

> I cast their effect away with casts,

That's not the best way to get rid of it.

http://developer.gnome.org/doc/API/2.0/glib/glib-Standard-Macros.html#G-CONST-RETURN:CAPS

> (not sure why a function would have to return a
> const value any more).

What's so strange on a function that returns a const string?

Yeti


--
Dynamic IP address is not a crime.



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