blob: 9ffc180bfe407033a555b02c67a6740ff45ab635 (
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 <new_project_header_expected_zero_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_expected_zero_version_VERSION_MAJOR,8)
intcheck(new_project_header_expected_zero_version_VERSION_MINOR,0)
intcheck(new_project_header_expected_zero_version_VERSION_PATCH,0)
intcheck(new_project_header_expected_zero_version_VERSION,((8 << 16) + (0 << 8) + 0))
strcheck(new_project_header_expected_zero_version_VERSION_STRING,"08.00.0")
return 0;
}
|