Kohei KaiGai <kai...@kaigai.gr.jp> writes: > I'm under implementation of this code according to the suggestion. > However, I'm not sure whether it is really portable way (at least, GCC > accepts), > and whether the interface is simpler than as Robert suggested at first.
> #define get_object_property_attnum_name(objtype) \ > ({ AttrNumber ____temp; \ > get_object_property((objtype), NULL, NULL, NULL, NULL, \ > &____temp, NULL, NULL); \ > ____temp; }) Blocks within expressions are a gcc-ism and will fail on any other compiler, so you can't do it that way. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers