Go to the documentation of this file. 47 #ifndef _MIRA_UNIQUE_IDENTIFIER_H_ 48 #define _MIRA_UNIQUE_IDENTIFIER_H_ 51 #pragma message("Macro _FILE_NAME_ not defined (it should be an explicit " \ 52 "definition in cmake). Disabling MIRA_UNIQUE_IDENTIFIER.") 55 #include <boost/preprocessor/cat.hpp> 56 #include <boost/preprocessor/stringize.hpp> 58 #define MIRA_UNIQUE_IDENTIFIER_ENABLED 70 #define MIRA_UNIQUE_IDENTIFIER \ 71 BOOST_PP_CAT(BOOST_PP_CAT(BOOST_PP_CAT(BOOST_PP_CAT(BOOST_PP_CAT(BOOST_PP_CAT( \ 72 __,_FILE_NAME_),_),__LINE__),_),__COUNTER__),__) 105 #define MIRA_FILE_LINE_IDENTIFIER \ 106 BOOST_PP_CAT(BOOST_PP_CAT(BOOST_PP_CAT(BOOST_PP_CAT(__,_FILE_NAME_),_),__LINE__),__) 111 #define MIRA_UNIQUE_STRING \ 112 BOOST_PP_STRINGIZE(MIRA_UNIQUE_IDENTIFIER) 117 #define MIRA_FILE_LINE_STRING \ 118 BOOST_PP_STRINGIZE(MIRA_FILE_LINE_IDENTIFIER) 120 #endif // #ifndef _FILE_NAME_