Concatenate and stringize macro values for #include
问题 I'm trying to create a string from multiple macros/values for use in a #include . I'm doing this to clean up some code for an initial state in a simple state system. I have 2 default, redefinable macros (if not defined there's a default value) #define DEFAULT_STATE StateName // name of class #define DEFAULT_STATE_LOCATION states/ // location of header file from root The include directive is being used from a file 4 folders in from the root , so the include should look like this #include "../.