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()
|
void unit_tests()
|
||||||
{
|
{
|
||||||
printf("sizeof(void*) = %lu\n", sizeof(void*));
|
if (sizeof(char)!=1) {
|
||||||
printf("sizeof(char*) = %lu\n", sizeof(char*));
|
fprintf(stderr, "sizeof(char) != 1\n");
|
||||||
printf("sizeof(uint8_t*) = %lu\n", sizeof(uint8_t*));
|
exit(1);
|
||||||
|
}
|
||||||
printf("sizeof(char) = %lu\n", sizeof(char));
|
fprintf(stderr, "All tests pass\n");
|
||||||
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Reference in a new issue