After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 630238 - Add preprocessor symbol for imported package
Add preprocessor symbol for imported package
Status: RESOLVED OBSOLETE
Product: vala
Classification: Core
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-09-21 10:18 UTC by Harald Wartig
Modified: 2018-05-22 13:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
enhanced CodeContext.add_package to also call CodeContext.add_define (1.30 KB, patch)
2010-09-21 10:33 UTC, Harald Wartig
none Details | Review

Description Harald Wartig 2010-09-21 10:18:12 UTC
It would be useful if the compiler would define a PKG_NAME preprocessor symbol for every imported package (--pkg). Then we could check the presence of a specific package using preprocessor directives. With that it would be possible to enable/disable features at compile time without the need for extra preprocessor symbols.
Comment 1 Harald Wartig 2010-09-21 10:33:15 UTC
Created attachment 170743 [details] [review]
enhanced CodeContext.add_package to also call CodeContext.add_define

This would be my solution to the problem. Please consider including in the next release.
Comment 2 GNOME Infrastructure Team 2018-05-22 13:45:09 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/133.