| 1 |
#include <new_project_header_zero_prefixed_version.h> |
| 2 |
#include <string.h> |
| 3 |
#include <stdio.h> |
| 4 |
|
| 5 |
#define intcheck(macro,val) \ |
| 6 |
if (macro != val) { \ |
| 7 |
printf(#macro " was %d instead of %d", macro, val); \ |
| 8 |
return 1; \ |
| 9 |
} |
| 10 |
#define strcheck(macro,val) \ |
| 11 |
if (strcmp(macro,val) != 0) { \ |
| 12 |
printf(#macro " was %s instead of %s", macro, val); \ |
| 13 |
return 1; \ |
| 14 |
} |
| 15 |
|
| 16 |
int main() |
| 17 |
{ |
| 18 |
intcheck(new_project_header_zero_prefixed_version_VERSION_MAJOR,8) |
| 19 |
intcheck(new_project_header_zero_prefixed_version_VERSION_MINOR,9) |
| 20 |
intcheck(new_project_header_zero_prefixed_version_VERSION_PATCH,7) |
| 21 |
intcheck(new_project_header_zero_prefixed_version_VERSION,((8 << 16) + (9 << 8) + 7)) |
| 22 |
strcheck(new_project_header_zero_prefixed_version_VERSION_STRING,"08.09.07") |
| 23 |
return 0; |
| 24 |
} |