Clean up some debugging code
This commit is contained in:
parent
205ca9df63
commit
6f3198f14d
1 changed files with 6 additions and 5 deletions
11
main.c
11
main.c
|
@ -47,11 +47,12 @@ usage(void)
|
|||
|
||||
void unit_tests()
|
||||
{
|
||||
printf("sizeof(void*) = %lu\n", sizeof(void*));
|
||||
printf("sizeof(char*) = %lu\n", sizeof(char*));
|
||||
printf("sizeof(uint8_t*) = %lu\n", sizeof(uint8_t*));
|
||||
|
||||
printf("sizeof(char) = %lu\n", sizeof(char));
|
||||
if (sizeof(char)!=1) {
|
||||
fprintf(stderr, "sizeof(char) != 1\n");
|
||||
exit(1);
|
||||
}
|
||||
fprintf(stderr, "All tests pass\n");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Reference in a new issue