How to use G_CONST_RETURN?

From: Yoichi Imai <yoichi_at_silver-forest.com>
Date: Sun, 26 Dec 2004 14:20:44 +0900

Hi,

I tried to use G_CONST_RETURN for the type of return value,
but an error occured.
  loqui-style-entry.gob:85: Error: syntax error before '*'

The code is here:
        public G_CONST_RETURN gchar *get_string(self) {
                return self->color_string;
        }

G_CONST_RETURN is useful to clarify that the value need not be freed.

-- 
Yoichi Imai <yoichi_at_silver-forest.com>
Received on Sun Dec 26 2004 - 05:16:26 CST

This archive was generated by hypermail 2.2.0 : Sun Apr 17 2011 - 21:05:02 CDT