blob: 339da9202a513336d792d4fe426c0db4612676d4 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 | #include <ecm_new_project_header_abspath_version.h>
#include <string.h>
#include <stdio.h>
#define intcheck(macro,val) \
    if (macro != val) { \
        printf(#macro " was %d instead of %d", macro, val); \
        return 1; \
    }
#define strcheck(macro,val) \
    if (strcmp(macro,val) != 0) { \
        printf(#macro " was %s instead of %s", macro, val); \
        return 1; \
    }
int main()
{
    intcheck(new_project_header_abspath_VERSION_MAJOR,2)
    intcheck(new_project_header_abspath_VERSION_MINOR,3)
    intcheck(new_project_header_abspath_VERSION_PATCH,4)
    intcheck(new_project_header_abspath_VERSION,((2 << 16) + (3 << 8) + 4))
    strcheck(new_project_header_abspath_VERSION_STRING,"2.3.4")
    return 0;
}
 |