globals.h
changeset 1163 81f9c6daeb60
parent 883 4963e22a267a
child 1211 a7e939cd1416
equal deleted inserted replaced
1162:51a8b41d3dbc 1163:81f9c6daeb60
    45 
    45 
    46 /******************************************************************************
    46 /******************************************************************************
    47  *  Overall macros
    47  *  Overall macros
    48  *****************************************************************************/
    48  *****************************************************************************/
    49 
    49 
    50 /**
    50 /** Helper macro for EC_STR(), literates a macro argument.
    51    Helper macro for EC_STR(), literates a macro argument.
    51  *
    52    \param X argument to literate.
    52  * \param X argument to literate.
    53 */
    53  */
    54 
       
    55 #define EC_LIT(X) #X
    54 #define EC_LIT(X) #X
    56 
    55 
    57 /**
    56 /** Converts a macro argument to a string.
    58    Converts a macro argument to a string.
    57  *
    59    \param X argument to stringify.
    58  * \param X argument to stringify.
    60 */
    59  */
    61 
       
    62 #define EC_STR(X) EC_LIT(X)
    60 #define EC_STR(X) EC_LIT(X)
    63 
    61 
    64 /**
    62 /** Master version string
    65    Master version string
    63  */
    66 */
       
    67 
       
    68 #define EC_MASTER_VERSION VERSION " " BRANCH " r" EC_STR(SVNREV)
    64 #define EC_MASTER_VERSION VERSION " " BRANCH " r" EC_STR(SVNREV)
    69 
    65 
    70 /*****************************************************************************/
    66 /*****************************************************************************/
    71 
    67 
    72 #endif
    68 #endif