vendredi 2 mars 2018

c++: include path variable, then header name

Suppose I have a main method where I write:

#include "path/to/header/header.h"

And I do this over and over again for each of my local project includes.

Is there a way to define a variable such that I can write:

#some_var = "path/to/headers/"
#include "{some_var}header.h"

Aucun commentaire:

Enregistrer un commentaire