-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
preprocessorC macro / preprocessor relatedC macro / preprocessor related
Description
In the project I'm working on (raylib), many #defines are specified in a config.h file, and many are specified by the makefile. Some way to distinguish between them would be helpful:
e.g.:
#ifdef PLATFORM_DESKTOP // specified by the makefile
#ifdef SUPPORT_IMAGE_EXPORT // specified by the config.h
I'd like some option of translation for these. Some I want to be version statements, some I want to be enums/static if:
version(PLATFORM_DESKTOP) {
static if(SUPPORT_IMAGE_EXPORT) {
I'm not sure how to envision this. Maybe a configuration file for ctod? I'm not sure if there would be a way to infer the right usage from the existing file. Especially since a lot of the config options are commented out in the config file, so ctod won't even see how they are defined.
Metadata
Metadata
Assignees
Labels
preprocessorC macro / preprocessor relatedC macro / preprocessor related