File indexing completed on 2024-04-28 15:18:32

0001 #include <new_project_header_zero_prefixed_version.h>
0002 #include <string.h>
0003 #include <stdio.h>
0004 
0005 #define intcheck(macro,val) \
0006     if (macro != val) { \
0007         printf(#macro " was %d instead of %d", macro, val); \
0008         return 1; \
0009     }
0010 #define strcheck(macro,val) \
0011     if (strcmp(macro,val) != 0) { \
0012         printf(#macro " was %s instead of %s", macro, val); \
0013         return 1; \
0014     }
0015 
0016 int main()
0017 {
0018     intcheck(new_project_header_zero_prefixed_version_VERSION_MAJOR,8)
0019     intcheck(new_project_header_zero_prefixed_version_VERSION_MINOR,9)
0020     intcheck(new_project_header_zero_prefixed_version_VERSION_PATCH,7)
0021     intcheck(new_project_header_zero_prefixed_version_VERSION,((8 << 16) + (9 << 8) + 7))
0022     strcheck(new_project_header_zero_prefixed_version_VERSION_STRING,"08.09.07")
0023     return 0;
0024 }