removed auto-generated file in favor of simpler preprocessor definition

This commit is contained in:
Daniel Crispell
2015-10-11 14:52:52 -04:00
parent 99f4ece13a
commit ec31d54c63
3 changed files with 19 additions and 14 deletions
+17
View File
@@ -0,0 +1,17 @@
#ifndef tutorial_shared_path_h_included
#define tutorial_shared_path_h_included
// convert the argument to a string constant
#define STRINGIZE2(s) #s
// need an extra level of macro indirection for preprocessor token stringification to work
#define STRINGIZE(s) STRINGIZE2(s)
#include <string>
#ifndef TUTORIAL_SHARED_PATH
const std::string tutorial_shared_path("../shared");
#else
const std::string tutorial_shared_path( STRINGIZE(TUTORIAL_SHARED_PATH) );
#endif
#endif