Re: [Vala] [PATCH] Add parenthesis to macro substitutions
- From: Jim Nelson <jim yorba org>
- To: vala-list gnome org
- Subject: Re: [Vala] [PATCH] Add parenthesis to macro substitutions
- Date: Thu, 25 Jun 2009 14:46:35 -0700
Just FYI, this issue has a few related bugs:
http://bugzilla.gnome.org/show_bug.cgi?id=584228http://bugzilla.gnome.org/show_bug.cgi?id=539894
http://bugzilla.gnome.org/show_bug.cgi?id=585292Regarding 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]