Re: [Vala] [PATCH] Add parenthesis to macro substitutions



Just FYI, this issue has a few related bugs:

http://bugzilla.gnome.org/show_bug.cgi?id=584228
http://bugzilla.gnome.org/show_bug.cgi?id=539894
http://bugzilla.gnome.org/show_bug.cgi?id=585292

Regarding the last one (which I reported), adding parentheses isn't enough.  Because macros are used, the rvalue is evaluated each time the const is invoked.

Should this technique be re-examined, where the consts are initialized at program startup and available as extern's to other source files?

-- Jim


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