tutorial_shared_path.h 475 B

1234567891011121314151617
  1. #ifndef tutorial_shared_path_h_included
  2. #define tutorial_shared_path_h_included
  3. // convert the argument to a string constant
  4. #define STRINGIZE2(s) #s
  5. // need an extra level of macro indirection for preprocessor token stringification to work
  6. #define STRINGIZE(s) STRINGIZE2(s)
  7. #include <string>
  8. #ifndef TUTORIAL_SHARED_PATH
  9. const std::string tutorial_shared_path("../shared");
  10. #else
  11. const std::string tutorial_shared_path( STRINGIZE(TUTORIAL_SHARED_PATH) );
  12. #endif
  13. #endif