Clean up some debugging code

This commit is contained in:
Chris Oei 2012-09-03 11:55:31 -07:00
parent 205ca9df63
commit 6f3198f14d

11
main.c
View file

@ -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